From: Tyler Riddle Date: Thu, 6 Sep 2012 16:21:23 +0000 (-0700) Subject: change logger to return true on init to be cleaner for logger test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f7d9be5d9a840af36bea90e422c4b2d5ae23d870;p=scpubgit%2FSystem-Introspector.git change logger to return true on init to be cleaner for logger test --- diff --git a/lib/System/Introspector/Logger.pm b/lib/System/Introspector/Logger.pm index 1303a59..59fb98f 100644 --- a/lib/System/Introspector/Logger.pm +++ b/lib/System/Introspector/Logger.pm @@ -6,7 +6,7 @@ use base qw(Log::Contextual); use System::Introspector::Logger::Output; use Log::Contextual qw( set_logger ); -#always pass in log level and execution context; +#should always pass in log level and execution context; #specifying a logger is used when logging during #testing so a null output logging class can be used sub init_logging { @@ -25,6 +25,8 @@ sub init_logging { $ENV{SYSTEM_INTROSPECTOR_LOG_UPTO} = $level; set_logger($logger); + + return 1; }