Merge commit 'v2.5.1'
[ossec-hids.git] / src / analysisd / cleanevent.c
index 6bfef2f..f830438 100755 (executable)
@@ -1,11 +1,11 @@
-/* @(#) $Id: cleanevent.c,v 1.42 2009/06/24 17:06:21 dcid Exp $ */
+/* @(#) $Id$ */
 
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
  *
  * This program is a free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation.
  *
  * License details at the LICENSE file included with OSSEC or 
@@ -549,11 +549,14 @@ int OS_CleanMSG(char *msg, Eventinfo *lf)
     
 
     #ifdef TESTRULE
-    print_out("**Phase 1: Completed pre-decoding.");
-    print_out("       full event: '%s'", lf->full_log);
-    print_out("       hostname: '%s'", lf->hostname);
-    print_out("       program_name: '%s'", lf->program_name);
-    print_out("       log: '%s'", lf->log);
+    if(!alert_only)
+    {
+        print_out("**Phase 1: Completed pre-decoding.");
+        print_out("       full event: '%s'", lf->full_log);
+        print_out("       hostname: '%s'", lf->hostname);
+        print_out("       program_name: '%s'", lf->program_name);
+        print_out("       log: '%s'", lf->log);
+    }
     #endif
     return(0);