add pid in meraki trace

This commit is contained in:
garnier-quentin 2021-03-08 11:22:50 +01:00
parent 5b24832116
commit e88fd25f1d

View File

@ -137,7 +137,7 @@ sub trace_api {
my $time_end = Time::HiRes::time(); my $time_end = Time::HiRes::time();
my $date_end = POSIX::strftime('%Y%m%d %H:%M:%S', localtime($time_end)); my $date_end = POSIX::strftime('%Y%m%d %H:%M:%S', localtime($time_end));
$date_end .= sprintf('.%03d', ($time_end - int($time_end)) * 1000); $date_end .= sprintf('.%03d', ($time_end - int($time_end)) * 1000);
print FH "$date_start - $date_end - $self->{api_token} - $options{url} - $options{code}\n"; print FH "$date_start - $date_end - $$ - $self->{api_token} - $options{url} - $options{code}\n";
close FH; close FH;
} }