diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-08-21 00:27:19 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-08-21 00:27:19 -0700 |
commit | d37dd5ecb8fb35bbd79a29cc78a1d680a3f7d6c8 (patch) | |
tree | 967e61f3529bca7c8df73a6435e23e41745cfc2d | |
parent | cd278c142b76d30adf9e51ae4c47d01d754cdd59 (diff) |
cleanup
-rw-r--r-- | FS/FS/Log/Output.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/Log/Output.pm b/FS/FS/Log/Output.pm index 18d7f1b43..29f31a5d9 100644 --- a/FS/FS/Log/Output.pm +++ b/FS/FS/Log/Output.pm @@ -1,7 +1,7 @@ package FS::Log::Output; +use base qw( Log::Dispatch::Output ); -use base Log::Dispatch::Output; -use FS::Record qw( dbdef ); +use FS::log; sub new { # exactly by the book my $proto = shift; @@ -24,7 +24,7 @@ sub log_message { my ($tablename, $tablenum) = @m{'tablename', 'tablenum'}; if ( $object and $object->isa('FS::Record') ) { $tablename = $object->table; - $tablenum = $object->get( dbdef->table($tablename)->primary_key ); + $tablenum = $object->get( $object->primary_key ); # get the agentnum from the object if it has one $m{'agentnum'} ||= $object->get('agentnum'); |