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.
This commit is contained in:
Tor Arne Vestbø
2018-09-08 21:30:58 +02:00
parent 1d65325a8b
commit c831d584af

View File

@@ -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 = {};