[Box Backup-commit] COMMIT r1370 - box/chris/general/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Mon, 05 Mar 2007 00:12:34 +0000
Author: chris
Date: 2007-03-05 00:12:34 +0000 (Mon, 05 Mar 2007)
New Revision: 1370
Modified:
box/chris/general/lib/common/Guards.h
Log:
Use logging framework
Modified: box/chris/general/lib/common/Guards.h
===================================================================
--- box/chris/general/lib/common/Guards.h 2007-03-05 00:06:26 UTC (rev 1369)
+++ box/chris/general/lib/common/Guards.h 2007-03-05 00:12:34 UTC (rev 1370)
@@ -21,6 +21,7 @@
#include <new>
#include "CommonException.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -33,9 +34,8 @@
{
if(mOSFileHandle < 0)
{
- ::syslog(LOG_ERR, "FileHandleGuard: "
- "failed to open file '%s': error %s",
- filename, strerror(errno));
+ BOX_ERROR("FileHandleGuard: failed to open file '" <<
+ filename << "': " << strerror(errno));
THROW_EXCEPTION(CommonException, OSFileOpenError)
}
}