Commits
- Commit:
387b976b99496c76d54831c44fb4c218e896c359
- From:
- Omar Polo <op@omarpolo.com>
- Date:
c->req may be NULL now
- Commit:
d0071d8321dc1e718a8146a888db155d1dc24be1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
verbose logging for getnameinfo
- Commit:
db623d7551caaed88664d4e7c379b231f89c6ca4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix wrong arguments order for send_log
- Commit:
41395640e09aac151159bfd8cf33ed4f32725157
- From:
- Omar Polo <op@omarpolo.com>
- Date:
introduce IMSG_LOG_REQUEST
- Commit:
2b5e2a5f04b4447a13b5468f6bdfe133a91b8063
- From:
- Omar Polo <op@omarpolo.com>
- Date:
send_log: accept explicit imsg type param
- Commit:
8a50fc0330f50c1c0c5fc0b541e0b8a19f900ea5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt
- Commit:
984c46a82e002089b3a4035ba34873ad9c75d973
- From:
- Omar Polo <op@omarpolo.com>
- Date:
kill unused variable
leftover from the handle_imsg_log -> do_log transition.
- Commit:
e952c5052a0c524eee6d8151b1af96ce2c94ca18
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fatal: send log to logger
- Commit:
42447f673f2bacb8b9038b17a7b6ba43a67b5cf7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
send priority to the logger process
- Commit:
e6ca8eb1561ade7484a0249ffd1234cdf94e2562
- From:
- Omar Polo <op@omarpolo.com>
- Date:
lower log priority for fatal errors from CRIT to ERR
found by Anna, thanks!
- Commit:
b33425827e3b96fa5f0ee2b7892fb5782c9b7879
- From:
- Omar Polo <op@omarpolo.com>
- Date:
print the datetime when logging to stderr