X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fsbin%2Frt-email-dashboards.in;h=e828002e8b92cf3c19213aaac591649bb4a51994;hp=1daba86b78e091ed1adf840538d071f226f966ba;hb=7322f2afedcc2f427e997d1535a503613a83f088;hpb=ae14e320388fa5e7f400bff1c251ef885b7952e6 diff --git a/rt/sbin/rt-email-dashboards.in b/rt/sbin/rt-email-dashboards.in index 1daba86b7..e828002e8 100644 --- a/rt/sbin/rt-email-dashboards.in +++ b/rt/sbin/rt-email-dashboards.in @@ -3,7 +3,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -70,7 +70,7 @@ BEGIN { # BEGIN RT CMD BOILERPLATE my %opts; use Getopt::Long; GetOptions( \%opts, - "help|h", "dryrun", "time=i", "epoch=i", "all" + "help|h", "dryrun", "time=i", "epoch=i", "all", "log=s" ); if ($opts{'help'}) { @@ -86,6 +86,9 @@ RT::Interface::CLI->import(qw{ loc }); # Load the config file RT::LoadConfig(); +# adjust logging to the screen according to options +RT->Config->Set( LogToSTDERR => $opts{log} ) if $opts{log}; + # Connect to the database and get RT::SystemUser and RT::Nobody loaded RT::Init(); @@ -156,6 +159,10 @@ Back-compat for --time SECONDS. Ignore subscription frequency when considering each dashboard (should only be used with --dryrun for testing and debugging) +=item --log LEVEL + +Adjust LogToSTDERR config option + =back =cut