geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit aca1a622b23ce1050b01dc7b96f46755e9f91d2e
parent 3fdfda137171168dcc7a3eaf6e9a073d48281f4e
Author: Christoph Lohmann <20h@r-36.net>
Date:   Mon, 18 Dec 2017 20:06:38 +0100

Change the time and log format to be easier parsable.

Diffstat:
main.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/main.c b/main.c @@ -94,11 +94,10 @@ logentry(char *host, char *port, char *qry, char *status) ptr = localtime(&tim); ahost = reverselookup(host); - strftime(timstr, sizeof(timstr), "%a %b %d %H:%M:%S %Z %Y", - ptr); + strftime(timstr, sizeof(timstr), "%F %T %z", ptr); - dprintf(glfd, "[%s|%s|%s] %s (%s)\n", - timstr, ahost, port, qry, status); + dprintf(glfd, "[%s|%s|%s|%s] %s\n", + timstr, ahost, port, status, qry); free(ahost); }