Commit f4d2a8d2adb32056e656a73ce3d1d1d155f81046
fix logging to specified facility
Yves Rutschle committed on 7/22/2017, 3:20:45 PMParent: aa06261d70509eb5a571937d5e3d5c41e11f193d
Files changed
common.c | changed |
common.c | ||
---|---|---|
@@ -653,9 +653,9 @@ | ||
653 | 653 … | fprintf(stderr, "Unknown facility %s\n", facility); |
654 | 654 … | exit(1); |
655 | 655 … | } |
656 | 656 … | |
657 | - openlog(name2, LOG_CONS, fn); | |
657 … | + openlog(name2, LOG_CONS, facilitynames[fn].c_val); | |
658 | 658 … | free(name1); |
659 | 659 … | /* Don't free name2, as openlog(3) uses it (at least in glibc) */ |
660 | 660 … | |
661 | 661 … | log_message(LOG_INFO, "%s %s started\n", server_type, VERSION); |
Built with git-ssb-web