--- a/metadataengine/server/src/mdslogger.cpp Mon Jan 18 20:34:07 2010 +0200
+++ b/metadataengine/server/src/mdslogger.cpp Tue Jan 26 12:13:20 2010 +0200
@@ -20,6 +20,7 @@
#ifdef LOG_MASTER_FLAG
+#ifdef _DEBUG
// ========================= MEMBER FUNCTIONS ==================================
@@ -149,9 +150,9 @@
// CheckSize
// ------------------------------------------------
//
+#ifdef MDE_FILE_LOGGING
void CMdSLogger::CheckSize( TInt aLines )
{
-#ifdef MDE_FILE_LOGGING
iLineCounter += aLines;
if ( iLineCounter < KLogfileMaxLength ) return; // no worries
@@ -170,10 +171,13 @@
iAltFileFlag = EFalse;
}
iLog.SetDateAndTime(EFalse, ETrue);
+ }
#else
- aLines = 0;
+void CMdSLogger::CheckSize( TInt /*aLines*/ )
+ {
+ // Nothing to check
+ }
#endif
- }
// ---------------------------------------------------------------------------
// DescribeL Returns sql clause with variables
@@ -331,4 +335,6 @@
}
}
+#endif // _DEBUG
#endif // LOG_MASTER_FLAG
+