aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-09-01 10:49:20 +0200
committerJonas Smedegaard <dr@jones.dk>2024-09-01 16:31:49 +0200
commit34c35912a4b457c4240c31b956f93c4d87726427 (patch)
treebc34ec43c1ea0e0f064dc516bc1245bb0f198df1 /bin
parentfac3b4444183ec38924cdf5c2878965b33be3992 (diff)
streamline logging
Diffstat (limited to 'bin')
-rwxr-xr-xbin/events2md.pl7
1 files changed, 3 insertions, 4 deletions
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...');