mirror of
https://github.com/torarnv/sparsebundlefs.git
synced 2026-02-26 18:35:50 +01:00
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:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user