AmendHub

Download:

jcs

/

subtext

/

amendments

/

149

logger: Include seconds in timestamps


jcs made amendment 149 over 2 years ago
--- logger.c Sun Jun 12 00:28:30 2022 +++ logger.c Thu Jun 16 09:43:41 2022 @@ -259,7 +259,7 @@ logger_vprintf(struct logger *logger, const char *form len++; } - len += strftime(buf + len, sizeof(buf) - len, "[%H:%M] ", + len += strftime(buf + len, sizeof(buf) - len, "[%H:%M:%S] ", localtime(&now)); len += vsnprintf(buf + len, sizeof(buf) - len, format, ap);