[Box Backup-commit] COMMIT r1359 - box/chris/general/lib/common
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sun Mar 4 23:36:14 GMT 2007
Author: chris
Date: 2007-03-04 23:36:14 +0000 (Sun, 04 Mar 2007)
New Revision: 1359
Modified:
box/chris/general/lib/common/EventWatchFilesystemObject.cpp
Log:
Use logging framework
Modified: box/chris/general/lib/common/EventWatchFilesystemObject.cpp
===================================================================
--- box/chris/general/lib/common/EventWatchFilesystemObject.cpp 2007-03-04 23:06:18 UTC (rev 1358)
+++ box/chris/general/lib/common/EventWatchFilesystemObject.cpp 2007-03-04 23:36:14 UTC (rev 1359)
@@ -17,6 +17,7 @@
#include "EventWatchFilesystemObject.h"
#include "autogen_CommonException.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -37,9 +38,9 @@
#ifdef HAVE_KQUEUE
if(mDescriptor == -1)
{
- ::syslog(LOG_ERR, "EventWatchFilesystemObject: "
- "Failed to open file '%s': %s",
- Filename, strerror(errno));
+ BOX_ERROR("EventWatchFilesystemObject: "
+ "Failed to open file '" << Filename << "': " <<
+ strerror(errno));
THROW_EXCEPTION(CommonException, OSFileOpenError)
}
#else
More information about the Boxbackup-commit
mailing list