projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 21110 Unparsable age error. Added javascript to validate field prior to submittin...
[freeside.git]
/
rt
/
sbin
/
rt-email-dashboards.in
diff --git
a/rt/sbin/rt-email-dashboards.in
b/rt/sbin/rt-email-dashboards.in
index
1daba86
..
e828002
100644
(file)
--- a/
rt/sbin/rt-email-dashboards.in
+++ b/
rt/sbin/rt-email-dashboards.in
@@
-3,7
+3,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
5
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
6
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-70,7
+70,7
@@
BEGIN { # BEGIN RT CMD BOILERPLATE
my %opts;
use Getopt::Long;
GetOptions( \%opts,
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'}) {
);
if ($opts{'help'}) {
@@
-86,6
+86,9
@@
RT::Interface::CLI->import(qw{ loc });
# Load the config file
RT::LoadConfig();
# 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();
# 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)
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
=back
=cut