projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove all old dx stuff and check that it all now works solely from the
[spider.git]
/
perl
/
DXDebug.pm
diff --git
a/perl/DXDebug.pm
b/perl/DXDebug.pm
index 821c41b44ea40791ccea40620adb642367a4d529..30fe2b25d4dee2f6cd1383c674dca655be6f12f3 100644
(file)
--- a/
perl/DXDebug.pm
+++ b/
perl/DXDebug.pm
@@
-11,7
+11,7
@@
package DXDebug;
require Exporter;
@ISA = qw(Exporter);
require Exporter;
@ISA = qw(Exporter);
-@EXPORT = qw(dbginit dbg dbgadd dbgsub dbglist dbgdump isdbg dbgclose confess croak cluck);
+@EXPORT = qw(dbginit dbg dbgadd dbgsub dbglist dbgdump
dbglog
isdbg dbgclose confess croak cluck);
use strict;
use vars qw(%dbglevel $fp $callback $cleandays $keepdays);
use strict;
use vars qw(%dbglevel $fp $callback $cleandays $keepdays);
@@
-28,7
+28,7
@@
$cleandays = 100;
use vars qw($VERSION $BRANCH);
$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
use vars qw($VERSION $BRANCH);
$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/
) || 0
;
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/
|| (0,0))
;
$main::build += $VERSION;
$main::branch += $BRANCH;
$main::build += $VERSION;
$main::branch += $BRANCH;
@@
-186,6
+186,13
@@
sub dbgclean
}
}
}
}
+sub dbglog
+{
+ my $sort = shift;
+ my $l = shift;
+ dbg($l);
+ DXLog::Log($sort, $l);
+}
1;
__END__
1;
__END__