projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
040c460
)
LXDebug: Zeitstempel mit Millisekunden-Auflösung ausgeben
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 16 Jun 2014 07:42:11 +0000
(09:42 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 16 Jun 2014 07:42:47 +0000
(09:42 +0200)
SL/LXDebug.pm
patch
|
blob
|
history
diff --git
a/SL/LXDebug.pm
b/SL/LXDebug.pm
index
80b41f9
..
016015f
100644
(file)
--- a/
SL/LXDebug.pm
+++ b/
SL/LXDebug.pm
@@
-260,7
+260,8
@@
sub is_tracing_enabled {
sub _write {
no warnings;
my ($self, $prefix, $message) = @_;
- my $date = strftime("%Y-%m-%d %H:%M:%S $$ [" . getppid() . "] ${prefix}: ", localtime(time()));
+ my @now = gettimeofday();
+ my $date = strftime("%Y-%m-%d %H:%M:%S." . sprintf('%03d', int($now[1] / 1000)) . " $$ [" . getppid() . "] ${prefix}: ", localtime($now[0]));
local *FILE;
chomp($message);