Permalink
Browse files

exclude undefined param

  • Loading branch information...
1 parent 2bd9ced commit 30c3f9e21ac9d58f2d855c6db3e765d64c69308a Steven Haryanto (on PC) committed Jun 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Log/Any/App.pm
View
@@ -653,7 +653,7 @@ sub _gen_appender_config {
"",
"log4perl.appender.$apd_name = $class\n",
(map { "log4perl.appender.$apd_name.$_ = $params->{$_}\n" }
- keys %$params),
+ grep {defined $params->{$_}} keys %$params),
"log4perl.appender.$apd_name.layout = PatternLayout\n",
"log4perl.appender.$apd_name.layout.ConversionPattern = $ospec->{pattern}\n",
($filter ? "log4perl.appender.$apd_name.Filter = $filter\n" : ""),

0 comments on commit 30c3f9e

Please sign in to comment.