From 3add8563309430d6547a0a6b6ab49846748f00fe Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Tue, 25 May 2010 13:58:38 +0000 Subject: [PATCH] 2010-05-25 Ramon Novoa * lib/PandoraFMS/Tools.pm: Set a default verbosity level for logger(). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2797 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/lib/PandoraFMS/Tools.pm | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index ddde7b895b..dc902083f9 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2010-05-25 Ramon Novoa + + * lib/PandoraFMS/Tools.pm: Set a default verbosity level for logger(). + 2010-05-25 Ramon Novoa * lib/PandoraFMS/DB.pm: Added get_agent_module_id to @EXPORT. diff --git a/pandora_server/lib/PandoraFMS/Tools.pm b/pandora_server/lib/PandoraFMS/Tools.pm index 9d7b9148ab..4e99d1a58a 100644 --- a/pandora_server/lib/PandoraFMS/Tools.pm +++ b/pandora_server/lib/PandoraFMS/Tools.pm @@ -255,7 +255,8 @@ sub md5check { ########################################################################## sub logger ($$;$) { my ($pa_config, $message, $level) = @_; - + + $level = 1 unless defined ($level); return if ($level > $pa_config->{'verbosity'}); my $file = $pa_config->{'logfile'};