Skip to content

Commit

Permalink
UserDB: log timestamps to second granularity
Browse files Browse the repository at this point in the history
I am not sure why this was just minute granularity before, but that is
not sufficient for correlation with other event logs.
  • Loading branch information
jonjensen committed Sep 17, 2014
1 parent 591f7d7 commit 9e02071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Vend/UserDB.pm
Expand Up @@ -751,7 +751,7 @@ sub log_either {
sub log {
my $self = shift;
my $time = $self->{OPTIONS}{unix_time} ? time() :
POSIX::strftime("%Y%m%d%H%M", localtime());
POSIX::strftime("%Y%m%d%H%M%S", localtime());
my $msg = shift;
logData( ($self->{OPTIONS}{logfile} || $Vend::Cfg->{LogFile}),
$time,
Expand Down

0 comments on commit 9e02071

Please sign in to comment.