log: caller can control syslog level

This commit is contained in:
Daniel Eklöf 2019-12-17 19:07:28 +01:00
parent 7a3fb9284e
commit a0fcec3a3d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 19 additions and 7 deletions

View file

@ -40,7 +40,7 @@ print_usage(const char *prog_name)
int
main(int argc, char *const *argv)
{
log_init(LOG_FACILITY_USER);
log_init(LOG_FACILITY_USER, LOG_CLASS_WARNING);
int ret = EXIT_FAILURE;
const char *const prog_name = argv[0];