From 34c35912a4b457c4240c31b956f93c4d87726427 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 1 Sep 2024 10:49:20 +0200 Subject: streamline logging --- bin/events2md.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/events2md.pl b/bin/events2md.pl index 7192cb0..b0772d3 100755 --- a/bin/events2md.pl +++ b/bin/events2md.pl @@ -25,6 +25,9 @@ use Object::Groupware::Calendar; if ( IO::Interactive::Tiny::is_interactive() ) { Log::Any::Adapter->set( 'Screen', default_level => 'info' ); } +else { + use Log::Any::Adapter ( 'Stderr', default_level => 'info' ); +} # set defaults and parse command-line options my ($BASE_URI, $CALENDAR_URI, $SKELDIR, $OUTPUT_FILE, $CALENDAR_LANG, @@ -135,10 +138,6 @@ elsif ( $base_uri->scheme eq 'file' ) { ); } } -if ( $log->is_trace ) { - use DDP; - p $calendar; -} # select subset of calendar events $log->debug('serialize calendar events...'); -- cgit v1.2.3