Browse code

print some more information in Foreground mode (bb#317)

git-svn: trunk@2843

Tomasz Kojm authored on 2007/02/23 04:08:59
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Feb 22 18:12:53 CET 2007 (tk)
2
+---------------------------------
3
+  * clamd/clamd.c: print some more information in Foreground mode (bb#317)
4
+
1 5
 Thu Feb 22 17:16:54 CET 2007 (tk)
2 6
 ---------------------------------
3 7
   * shared/misc.c: drop rmdirs() and use cli_rmdirs() instead
... ...
@@ -261,13 +261,6 @@ int main(int argc, char **argv)
261 261
     }
262 262
 #endif
263 263
 
264
-    logg("#clamd daemon "VERSION" (OS: "TARGET_OS_TYPE", ARCH: "TARGET_ARCH_TYPE", CPU: "TARGET_CPU_TYPE")\n");
265
-
266
-    if(logg_size)
267
-	logg("#Log file size limited to %d bytes.\n", logg_size);
268
-    else
269
-	logg("#Log file size limit disabled.\n");
270
-
271 264
 #ifdef C_LINUX
272 265
     procdev = 0;
273 266
     if(stat("/proc", &sb) != -1 && !sb.st_size)
... ...
@@ -304,9 +297,16 @@ int main(int argc, char **argv)
304 304
     } else
305 305
         foreground = 1;
306 306
 
307
+    logg("clamd daemon "VERSION" (OS: "TARGET_OS_TYPE", ARCH: "TARGET_ARCH_TYPE", CPU: "TARGET_CPU_TYPE")\n");
308
+
309
+    if(logg_size)
310
+	logg("Log file size limited to %d bytes.\n", logg_size);
311
+    else
312
+	logg("Log file size limit disabled.\n");
313
+
307 314
     /* load the database(s) */
308 315
     dbdir = cfgopt(copt, "DatabaseDirectory")->strarg;
309
-    logg("#Reading databases from %s\n", dbdir);
316
+    logg("Reading databases from %s\n", dbdir);
310 317
 
311 318
     if(cfgopt(copt, "PhishingSignatures")->enabled)
312 319
 	dboptions |= CL_DB_PHISHING;