[interchange] UserDB: log timestamps to second granularity

Jon Jensen interchange-cvs at icdevgroup.org
Wed Sep 17 23:17:49 UTC 2014


commit 9e02071b8671ac654adae6bbbe062700f904ed7c
Author: Jon Jensen <jon at endpoint.com>
Date:   Wed Sep 17 17:14:43 2014 -0600

    UserDB: log timestamps to second granularity
    
    I am not sure why this was just minute granularity before, but that is
    not sufficient for correlation with other event logs.

 lib/Vend/UserDB.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/UserDB.pm b/lib/Vend/UserDB.pm
index 4068408..c22fac9 100644
--- a/lib/Vend/UserDB.pm
+++ b/lib/Vend/UserDB.pm
@@ -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,



More information about the interchange-cvs mailing list