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

Andrew Cagney andrew.cagney at gmail.com
Mon Sep 4 20:33:45 UTC 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan-dev/attachments/20170904/97bcffe7/attachment-0001.html>


More information about the Swan-dev mailing list