Introduction
Introduction Statistics Contact Development Disclaimer Help
Change the time and log format to be easier parsable. - geomyidae - A small C-b…
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit aca1a622b23ce1050b01dc7b96f46755e9f91d2e
parent 3fdfda137171168dcc7a3eaf6e9a073d48281f4e
Author: Christoph Lohmann <[email protected]>
Date: Mon, 18 Dec 2017 20:06:38 +0100
Change the time and log format to be easier parsable.
Diffstat:
M 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);
}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.