projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'patch-1' of https://github.com/gjones2/Freeside
[freeside.git]
/
FS
/
FS
/
Cron
/
bill.pm
diff --git
a/FS/FS/Cron/bill.pm
b/FS/FS/Cron/bill.pm
index
a9df376
..
6e110e8
100644
(file)
--- a/
FS/FS/Cron/bill.pm
+++ b/
FS/FS/Cron/bill.pm
@@
-13,6
+13,8
@@
use FS::cust_main;
use FS::part_event;
use FS::part_event_condition;
use FS::part_event;
use FS::part_event_condition;
+use FS::Log;
+
@ISA = qw( Exporter );
@EXPORT_OK = qw ( bill bill_where );
@ISA = qw( Exporter );
@EXPORT_OK = qw ( bill bill_where );
@@
-27,6
+29,9
@@
use FS::part_event_condition;
sub bill {
my %opt = @_;
sub bill {
my %opt = @_;
+ my $log = FS::Log->new('Cron::bill');
+ $log->info('start');
+
my $check_freq = $opt{'check_freq'} || '1d';
my $debug = 0;
my $check_freq = $opt{'check_freq'} || '1d';
my $debug = 0;
@@
-134,6
+139,7
@@
sub bill {
$cursor_dbh->commit or die $cursor_dbh->errstr;
$cursor_dbh->commit or die $cursor_dbh->errstr;
+ $log->info('finish');
}
# freeside-daily %opt:
}
# freeside-daily %opt: