summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feeder.pl2
-rw-r--r--lib/Feed/Utils.pm7
2 files changed, 7 insertions, 2 deletions
diff --git a/feeder.pl b/feeder.pl
index 002a918..f33fddf 100644
--- a/feeder.pl
+++ b/feeder.pl
@@ -11,7 +11,7 @@ log4perl.rootLogger = TRACE, Screen
log4perl.appender.Screen = Log::Log4perl::Appender::Screen
log4perl.appender.Screen.stderr = 1
log4perl.appender.Screen.layout = PatternLayout
-log4perl.appender.Screen.layout.ConversionPattern = [%d{ISO8601}] (%c) %m{chomp}%n
+log4perl.appender.Screen.layout.ConversionPattern = [%d{ISO8601}] %p{1} (%c) %m{chomp}%n
LOG
set_feed_class(Feed->with_traits(
diff --git a/lib/Feed/Utils.pm b/lib/Feed/Utils.pm
index 9752427..db2fb18 100644
--- a/lib/Feed/Utils.pm
+++ b/lib/Feed/Utils.pm
@@ -36,7 +36,12 @@ sub feed {
%feed_args,
%args,
});
- $feed->process;
+
+ try {
+ $feed->process;
+ } catch {
+ $feed->log->error($_);
+ };
return;
}