summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2015-03-13 00:08:56 -0700
committerTushar Gohad <tushar.gohad@intel.com>2015-03-13 00:08:56 -0700
commit21ed77fed2e31ec5183460a6bd9ff4592140b409 (patch)
treee2b537da1276f8d792ec0717c00d7a5396f67788 /src
parent235a9769105e88dbafd75ed4282482cc8088edf8 (diff)
downloadliberasurecode-21ed77fed2e31ec5183460a6bd9ff4592140b409.tar.gz
Log to syslog and stderr by default
Diffstat (limited to 'src')
-rw-r--r--src/erasurecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/erasurecode.c b/src/erasurecode.c
index 037411e..2c6a30b 100644
--- a/src/erasurecode.c
+++ b/src/erasurecode.c
@@ -197,7 +197,7 @@ int liberasurecode_backend_close(ec_backend_t instance)
void __attribute__ ((constructor))
liberasurecode_init(void) {
/* init logging */
- openlog("liberasurecode", LOG_PID | LOG_CONS, LOG_USER);
+ openlog("liberasurecode", LOG_PID | LOG_CONS | LOG_NDELAY | LOG_PERROR, LOG_USER);
/* populate supported backends list as a string */
{