X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fanalysisd%2Fcleanevent.c;h=f830438c366173403a3d72020942d7cd8dbd0d76;hp=6bfef2fa9f3ad4e4b97f1da410c485425ea0d1d1;hb=301048b51990573e58a30dc4a5bb4ec285cad554;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a diff --git a/src/analysisd/cleanevent.c b/src/analysisd/cleanevent.c index 6bfef2f..f830438 100755 --- a/src/analysisd/cleanevent.c +++ b/src/analysisd/cleanevent.c @@ -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);