diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-26 21:48:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-26 21:48:41 +0000 |
commit | 26f3cb865202160fe6b8ecfb20a0e41fea3a4a6a (patch) | |
tree | 4f0246453c39783f476c2b088a961d3fc0bf2da8 /src/common/util.c | |
parent | 64fc462a3a8687845c255c32941fee98a31eb3f3 (diff) | |
download | tor-26f3cb865202160fe6b8ecfb20a0e41fea3a4a6a.tar.gz tor-26f3cb865202160fe6b8ecfb20a0e41fea3a4a6a.zip |
Add SysLog option to direct log messages to the system log instead of a FILE*.
svn:r2591
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index d7f2f1a289..023463bcf3 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1740,13 +1740,17 @@ try_next_line: while(*value && isspace((int)*value)) value++; +#if 0 if(!*end || !*value) { /* only a key on this line. no value. */ *end = 0; log_fn(LOG_WARN,"Line has keyword '%s' but no value. Failing.",key); return -1; } +#endif *end = 0; /* null it out */ + tor_assert(key); + tor_assert(value); log_fn(LOG_DEBUG,"got keyword '%s', value '%s'", key, value); *key_out = key, *value_out = value; return 1; |