[Box Backup-commit] COMMIT r2217 - box/trunk/lib/common

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Wed, 6 Aug 2008 19:23:11 +0100 (BST)


Author: chris
Date: 2008-08-06 19:23:10 +0100 (Wed, 06 Aug 2008)
New Revision: 2217

Modified:
   box/trunk/lib/common/FileStream.cpp
Log:
Log a warning with the file that couldn't be opened and the error code,
to help debus issues Pete Jalajas is having with Amazon S3 and fuse.


Modified: box/trunk/lib/common/FileStream.cpp
===================================================================
--- box/trunk/lib/common/FileStream.cpp	2008-08-03 07:09:18 UTC (rev 2216)
+++ box/trunk/lib/common/FileStream.cpp	2008-08-06 18:23:10 UTC (rev 2217)
@@ -47,6 +47,8 @@
 		}
 		else
 		{
+			BOX_LOG_SYS_WARNING("Failed to open file: " <<
+				Filename);
 			THROW_EXCEPTION(CommonException, OSFileOpenError)
 		}
 	}