Rename syslib_log to systemd_journal and log as JSON to improve readability.
Add the optional -DBINARYLOGS flag to encode the JSON logs as Base64. This allows to log binary data as well but it is turned off for backwards-compatibility. Requested by https://github.com/reyk/systemd-openbsd/issues/3
This commit is contained in:
parent
eff4cf144e
commit
ef95987cfd
10 changed files with 136 additions and 42 deletions
|
|
@ -35,7 +35,7 @@ systemd_dir(void (**cb)(void))
|
|||
if (syslib_randomdir(path) != 0)
|
||||
return (-1);
|
||||
|
||||
syslib_log("dir %s", path);
|
||||
systemd_journal("dir %s", path);
|
||||
|
||||
/* Recursively remove the directory. */
|
||||
if (syslib_rmtree(path) != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue