From c831d584af4cbb086054eef4c17d9f288d178ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Sat, 8 Sep 2018 21:30:58 +0200 Subject: [PATCH] Don't send syslog messages to console via LOG_CONS It results in duplicate messages to the console when run in the foreground on Ubuntu 16.04. We already get all messages to stderr via LOG_PERROR. --- sparsebundlefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparsebundlefs.cpp b/sparsebundlefs.cpp index 98957fd..61f8a07 100644 --- a/sparsebundlefs.cpp +++ b/sparsebundlefs.cpp @@ -453,7 +453,7 @@ static size_t read_size(const string &str) int main(int argc, char **argv) { - openlog("sparsebundlefs", LOG_CONS | LOG_PERROR, LOG_USER); + openlog("sparsebundlefs", LOG_PERROR, LOG_USER); setlogmask(~(LOG_MASK(LOG_DEBUG))); struct sparsebundle_t sparsebundle = {};