From: ivan Date: Thu, 17 Nov 2005 11:15:35 +0000 (+0000) Subject: update debuggging information for replace group info with user@domain X-Git-Tag: BEFORE_FINAL_MASONIZE~309 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=3c0e96d4579c22df58de58dac0797c16d8df76c8;p=freeside.git update debuggging information for replace group info with user@domain --- diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index c7aa946de..97ee00005 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -497,8 +497,10 @@ sub replace { return $error if $error; $old->usergroup( [ $old->radius_groups ] ); - warn "old groups: ". join(' ',@{$old->usergroup}). "\n" if $DEBUG; - warn "new groups: ". join(' ',@{$new->usergroup}). "\n" if $DEBUG; + if ( $DEBUG ) { + warn $old->email. " old groups: ". join(' ',@{$old->usergroup}). "\n"; + warn $new->email. "new groups: ". join(' ',@{$new->usergroup}). "\n"; + } if ( $new->usergroup ) { #(sorta) false laziness with FS::part_export::sqlradius::_export_replace my @newgroups = @{$new->usergroup};