Commits
Commit:
bd2eb0952052d9213b3b3832d2f2f8e16257f244
Author:
Omar Polo <op@omarpolo.com>
Date:
Thu Jul 7 18:15:06 2022 UTC
call tzset(3) to fix times in logs

reported by Karl Jeacle, thanks!
Commit:
a81dd6cda6c823fd9ab43abbf8722ced47a754a8
Author:
Omar Polo <op@omarpolo.com>
Date:
Sun Oct 24 16:34:30 2021 UTC
fix "double slash" in logs

gmid ended up printing two slashes between the hostname and the path
when logging the request IRI.
Commit:
387b976b99496c76d54831c44fb4c218e896c359
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri Oct 15 07:51:15 2021 UTC
c->req may be NULL now
Commit:
d0071d8321dc1e718a8146a888db155d1dc24be1
Author:
Omar Polo <op@omarpolo.com>
Date:
Sat Oct 2 17:20:56 2021 UTC
verbose logging for getnameinfo
Commit:
db623d7551caaed88664d4e7c379b231f89c6ca4
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri Sep 17 16:17:16 2021 UTC
fix syslog logging on FreeBSD

Due to capsicum(4), opening the log on-demand via syslog(3) fails.
openlog(LOG_NDELAY) forces the log to be opened immediately, before we
enter capsicum.

This doesn't affect OpenBSD (where pledge(2) doesn't stop syslog) nor
linux (where the log process is not sandboxed.)

Reported by Karl Jeacle, thank you!
Commit:
ef352ec3b87210945429d033625bbfb06de4d7c4
Author:
Omar Polo <op@omarpolo.com>
Date:
Mon Aug 23 22:36:01 2021 UTC
fix wrong arguments order for send_log
Commit:
41395640e09aac151159bfd8cf33ed4f32725157
Author:
Omar Polo <op@omarpolo.com>
Date:
Mon Jul 19 07:31:40 2021 UTC
introduce IMSG_LOG_REQUEST
Commit:
2b5e2a5f04b4447a13b5468f6bdfe133a91b8063
Author:
Omar Polo <op@omarpolo.com>
Date:
Mon Jul 19 07:23:38 2021 UTC
send_log: accept explicit imsg type param
Commit:
8a50fc0330f50c1c0c5fc0b541e0b8a19f900ea5
Author:
Omar Polo <op@omarpolo.com>
Date:
Wed Jul 7 09:18:24 2021 UTC
initialize the logger early

Initialize the logger as soon as possible and log by default to
stderr. With this, some (common?) errors are printed early instead of
ending up in syslog.

# NB: this is in configless mode
% ./gmid -p 80
[2021-07-07 11:05:57] bind: Address already in use
% ./gmid -p 81
[2021-07-07 11:13:53] bind: Permission denied
%
Commit:
7700ab07d3a97459e8d294f0ee672d7eaed67b85
Author:
Omar Polo <op@omarpolo.com>
Date:
Tue Jul 6 10:56:13 2021 UTC
fmt
Commit:
984c46a82e002089b3a4035ba34873ad9c75d973
Author:
Omar Polo <op@omarpolo.com>
Date:
Wed Jun 16 14:38:47 2021 UTC
kill unused variable

leftover from the handle_imsg_log -> do_log transition.
Commit:
e952c5052a0c524eee6d8151b1af96ce2c94ca18
Author:
Omar Polo <op@omarpolo.com>
Date:
Tue Jun 15 08:06:10 2021 UTC
allow sending fd to log on to the logger process

the logger process now can receive a file descriptor to write logs
to. At the moment the logic is simple, if it receives a file it logs
there, otherwise it logs to syslog. This will allow to log on custom
log files.
Commit:
2ef7f631db592b0baf910eb2d05d9fa45f85c671
Author:
Omar Polo <op@omarpolo.com>
Date:
Wed Apr 28 12:43:17 2021 UTC
wait for logger after fatal()

With -f, when the main process exits after a fatal() (usually) the
shell prompt is printed before the logger message.

This adds a small poll to wait for the logger process to exit.
Commit:
d89a9060f812301850ae4c3f975d475e31fba0a7
Author:
Omar Polo <op@omarpolo.com>
Date:
Wed Apr 28 12:43:17 2021 UTC
fatal: send log to logger
Commit:
42447f673f2bacb8b9038b17a7b6ba43a67b5cf7
Author:
Omar Polo <op@omarpolo.com>
Date:
Wed Apr 28 12:43:17 2021 UTC
send priority to the logger process
Omar Polo