From 961c002eb63d02214e3564472ebaa7ae6ac1ef16 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 14 Dec 2015 15:19:23 +0100 Subject: [PATCH] LXDebug: Prozess-ID des kivitendo-Prozesses ausgeben, nicht die des Parents --- SL/LXDebug.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index 553ab5037..c0983aa09 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -18,7 +18,7 @@ use constant FILE_TARGET => 0; use constant STDERR_TARGET => 1; use Data::Dumper; -use POSIX qw(strftime getppid); +use POSIX qw(strftime getpid); use Time::HiRes qw(gettimeofday tv_interval); use YAML; use SL::Request (); @@ -262,7 +262,7 @@ sub _write { no warnings; my ($self, $prefix, $message) = @_; my @now = gettimeofday(); - my $date = strftime("%Y-%m-%d %H:%M:%S." . sprintf('%03d', int($now[1] / 1000)) . " $$ [" . getppid() . "] ${prefix}: ", localtime($now[0])); + my $date = strftime("%Y-%m-%d %H:%M:%S." . sprintf('%03d', int($now[1] / 1000)) . " $$ [" . getpid() . "] ${prefix}: ", localtime($now[0])); local *FILE; chomp($message); -- 2.20.1