projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cd278c1
)
cleanup
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 21 Aug 2014 07:27:19 +0000
(
00:27
-0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 21 Aug 2014 07:27:19 +0000
(
00:27
-0700)
FS/FS/Log/Output.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Log/Output.pm
b/FS/FS/Log/Output.pm
index
18d7f1b
..
29f31a5
100644
(file)
--- a/
FS/FS/Log/Output.pm
+++ b/
FS/FS/Log/Output.pm
@@
-1,7
+1,7
@@
package FS::Log::Output;
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;
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;
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');
# get the agentnum from the object if it has one
$m{'agentnum'} ||= $object->get('agentnum');