Commits
- 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
- Commit:
62e001b06778c96d0deebceddf1913f7b57ab2d6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move all sandbox-related code to sandbox.c
while there, add capsicum for the logger process
- Commit:
bc99d868bc3745dcc65add06cd3f9b9ec3575cb5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactoring: imsg everywhere
use imsg to handle ALL kinds of IPC in gmid. This simplifies and shorten the
code, and makes everything more uniform too.
- Commit:
de62c38d81239d09db425974b3197c32d0fad51b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix out-of-bounds access
obviously msg[datalen] is an off-by-one
- Commit:
376a540764c3778330b4f744031bcdb5c6e73647
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move log_init & vars to gmid.c, retain logger_main in log.c
this is to let the regression suite compile
- Commit:
4604dc9671fc46832928fb9f6ab83aaee55931d8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move vhost_should_log call to server.c
log.o is linked to some regress/ stuff. Calling from there a vhost_*
function means that we should link the regress/stuff to server.o too
(and that would pull in other stuff...). Moving the call is easier,
and also probably better.
- Commit:
793835cb26c39202133c754fb33f8909ebf8fb92
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `log on/off' to enable/disable logs per-location