浏览代码

add missing warning

svn:r5806
Nick Mathewson 20 年之前
父节点
当前提交
c562ca494a
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/or/config.c

+ 3 - 1
src/or/config.c

@@ -2764,8 +2764,10 @@ options_init_logs(or_options_t *options, int validate_only)
         ok = 0; goto cleanup;
       }
       if (!validate_only) {
-        if (add_file_log(levelMin, levelMax, smartlist_get(elts, 2)) < 0)
+        if (add_file_log(levelMin, levelMax, smartlist_get(elts, 2)) < 0) {
+          warn(LD_CONFIG, "Couldn't open file for 'Log %s'", opt->value);
           ok = 0;
+        }
       }
       goto cleanup;
     }