[Swan-dev] optional <date/time> prefix in logs

Paul Wouters paul at nohats.ca
Mon Sep 4 21:05:46 UTC 2017


Yes, I assume that was my bug :)

Sent from my iPhone

> On Sep 4, 2017, at 16:33, Andrew Cagney <andrew.cagney at gmail.com> wrote:
> 
> I've noticed that, for stdout logging, the date/time is only sometimes prefixed:
> 
> - peer logging prepends strftime("%Y-%m-%d %T") unconditionally (and has done so since before time began)
> 
> while:
> 
> - libreswan_log() prepends strftime("%b %e %T: ") when log_with_timestamp
> - debug logging prepends strftime("%b %e %T: ") when log_with_timestamp
> 
> yet:
> 
> - errorno logging does not prepend anything
> - exit-fatal logging does not prepend anything
> 
> I suspect 177c5e96a582f4be159f42292a23a3b36c812253 simply missed these cases?
> 
> Andrew
> 
> _______________________________________________
> Swan-dev mailing list
> Swan-dev at lists.libreswan.org
> https://lists.libreswan.org/mailman/listinfo/swan-dev



More information about the Swan-dev mailing list