diff options
| author | ivan <ivan> | 2010-07-02 18:56:28 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2010-07-02 18:56:28 +0000 | 
| commit | 79d6c7de91b50df4bea46c1bd9433440164faeaf (patch) | |
| tree | 134b522c49fe429cfa7a0b7e503284c8b5e8928b /FS | |
| parent | b41cc79f66f4e701e0f6d973758529ebff702bf1 (diff) | |
more debugging for weird bill lockup, RT#8993
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/cust_main.pm | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index e98f70012..293606396 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2758,8 +2758,14 @@ sub bill {    local $FS::UID::AutoCommit = 0;    my $dbh = dbh; +  warn "$me acquiring lock on customer ". $self->custnum. "\n" +    if $DEBUG; +    $self->select_for_update; #mutex +  warn "$me running pre-bill events for customer ". $self->custnum. "\n" +    if $DEBUG; +    my $error = $self->do_cust_event(      'debug'      => ( $options{'debug'} || 0 ),      'time'       => $invoice_time, @@ -2771,6 +2777,9 @@ sub bill {      return $error;    } +  warn "$me done running pre-bill events for customer ". $self->custnum. "\n" +    if $DEBUG; +    #keep auto-charge and non-auto-charge line items separate    my @passes = ( '', 'no_auto' );  | 
