Skip to content

Commit

Permalink
diod: drop program prefix from logs
Browse files Browse the repository at this point in the history
Problem: the "diod: " log prefix is not helpful because server
logging is rarely mixed with output from other programs.

Or if it is, it's been processed through the systemd journal or
syslog which also adds its own prefix.

Initialize server logging with no prefix.
  • Loading branch information
garlick committed Jan 20, 2025
1 parent e5d270f commit 6d3d25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/diod.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ main(int argc, char **argv)
srvmode_t mode = SRV_NORMAL;
int rfdno = -1, wfdno = -1;

diod_log_init (argv[0]);
diod_log_init (NULL);
diod_conf_init ();

/* config file overrides defaults */
Expand Down

0 comments on commit 6d3d25d

Please sign in to comment.