summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authormark <mark>2011-12-27 02:07:22 +0000
committermark <mark>2011-12-27 02:07:22 +0000
commitf8028548aeecaf0697287f9b0342b209db11a4c6 (patch)
treeb9df05ee657e5720c424952dde32e7466a0ec296 /FS/FS
parent59a31e68e7363b4252dca782e2df63cdbc1ffb02 (diff)
fix bug in debug mode, #13853
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/Cron/rt_tasks.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/Cron/rt_tasks.pm b/FS/FS/Cron/rt_tasks.pm
index 4977eb2f8..fd2a718d7 100644
--- a/FS/FS/Cron/rt_tasks.pm
+++ b/FS/FS/Cron/rt_tasks.pm
@@ -31,9 +31,6 @@ sub rt_daily {
my $system = $FS::TicketSystem::system;
return if $system ne 'RT_Internal';
- $DEBUG = 1 if $opt{'v'};
- RT::Config->Set( LogToScreen => 'debug' ) if $DEBUG;
-
# if -d or -y is in use, bail out. There's no reliable way to tell RT
# to use an alternate system time.
if ( $opt{'d'} or $opt{'y'} ) {
@@ -46,6 +43,9 @@ sub rt_daily {
my $CurrentUser = $session->{'CurrentUser'}
or die "Failed to create RT session";
+ $DEBUG = 1 if $opt{'v'};
+ RT::Config->Set( LogToScreen => 'debug' ) if $DEBUG;
+
# load some modules that aren't handled in FS::TicketSystem
foreach (qw(
Search::ActiveTicketsInQueue