X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FCron%2Frt_tasks.pm;h=fd2a718d71533b709691ebf84c1d94a47fca9c01;hp=4977eb2f8be8b6d6547895e0c93d76f44184fd49;hb=4e956dcc46d5e38e0a8b90638c96736f8b4496d6;hpb=b46d1bb09d6bbc5746e533f67ace294f5cd8fb42 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