[Box Backup-commit] COMMIT r1360 - box/chris/merge/lib/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sun Mar 4 23:38:04 GMT 2007


Author: chris
Date: 2007-03-04 23:38:03 +0000 (Sun, 04 Mar 2007)
New Revision: 1360

Modified:
   box/chris/merge/lib/common/EventWatchFilesystemObject.cpp
Log:
Add logging in remaining places where Common OSFileOpenError can be thrown.
(refs #3, merges part of [1099] and [1359])


Modified: box/chris/merge/lib/common/EventWatchFilesystemObject.cpp
===================================================================
--- box/chris/merge/lib/common/EventWatchFilesystemObject.cpp	2007-03-04 23:36:14 UTC (rev 1359)
+++ box/chris/merge/lib/common/EventWatchFilesystemObject.cpp	2007-03-04 23:38:03 UTC (rev 1360)
@@ -17,6 +17,7 @@
 
 #include "EventWatchFilesystemObject.h"
 #include "autogen_CommonException.h"
+#include "Logging.h"
 
 #include "MemLeakFindOn.h"
 
@@ -37,6 +38,9 @@
 #ifdef HAVE_KQUEUE
 	if(mDescriptor == -1)
 	{
+		BOX_ERROR("EventWatchFilesystemObject: "
+			"Failed to open file '" << Filename << "': " <<
+			strerror(errno));
 		THROW_EXCEPTION(CommonException, OSFileOpenError)
 	}
 #else




More information about the Boxbackup-commit mailing list