LP#1336825 Fix log level on find_service warning user/jeff/lp_1336825_fix_log_statement
authorJeff Godin <jgodin@tadl.org>
Wed, 2 Jul 2014 15:36:01 +0000 (11:36 -0400)
committerJeff Godin <jgodin@tadl.org>
Wed, 2 Jul 2014 15:36:01 +0000 (11:36 -0400)
Sip::Configuration::find_service tries to log a warning when it does
not find a matching service defined for a given
address/port/protocol tuple.

This uses the correct LOG_WARNING log level, ensuring that the
desired message is logged.

Thanks to Jason Boyer for catching this!

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Sip/Configuration.pm

index 4f36f1a..a673fb9 100644 (file)
@@ -111,7 +111,7 @@ sub find_service {
         }
         push @misses, $portstr;
     }
-    Sys::Syslog::syslog("LOG_WARN", "find_service: No match in: " . join(' ',@misses));
+    Sys::Syslog::syslog("LOG_WARNING", "find_service: No match in: " . join(' ',@misses));
     return;
 }