[ic] [interchange] UserDB: log timestamps to second granularity

Stefan Hornburg (Racke) racke at linuxia.de
Thu Sep 18 06:30:40 UTC 2014


On 09/18/2014 01:17 AM, Jon Jensen wrote:
> 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.
> 

Indeed, good find!

Thanks
	Racke

>  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,
> 
> _______________________________________________
> interchange-cvs mailing list
> interchange-cvs at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-cvs
> 


-- 
Perl and Dancer Development

Visit our Perl::Dancer conference 2014:

http://act.perl.dance/



More information about the interchange-users mailing list