changeset 558:e32881ece842 dev-1_3_0

Only try to create log directories if logging is enabled.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 13 Nov 2012 01:06:58 +0200
parents 02244c553741
children 6f54edf6bd54
files main.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Tue Nov 13 01:06:26 2012 +0200
+++ b/main.c	Tue Nov 13 01:06:58 2012 +0200
@@ -1864,6 +1864,7 @@
             setHomeDir, SET_DIR_SEPARATOR, SET_LOG_DIR, SET_DIR_SEPARATOR);
     }
 
+    if (optLogEnable)
     {
         BOOL isDir, isWritable, isReadable;
         if (nn_stat_path(optLogPath, &isDir, &isWritable, &isReadable))