Browse Source

control event logs include loglevel notice

svn:r2746
Roger Dingledine 19 years ago
parent
commit
3235c72f6c
2 changed files with 3 additions and 4 deletions
  1. 2 3
      doc/control-spec.txt
  2. 1 1
      src/or/config.c

+ 2 - 3
doc/control-spec.txt

@@ -174,13 +174,12 @@ the message.
                    (Launched=0,connected=1,failed=2,closed=3)
                 OR nickname/identity [NUL-terminated]
 
-      0x0004 -- Bandwidth used in last N seconds.
+      0x0004 -- Bandwidth used in the last second
 
-                Number of seconds covered in interval [2 octets]
                 Bytes read [4 octets]
                 Bytes written [4 octets]
 
-      0x0005 -- Warning/error occurred
+      0x0005 -- Notice/warning/error occurred
 
                 Message [NUL-terminated]
 

+ 1 - 1
src/or/config.c

@@ -262,7 +262,7 @@ options_act(void) {
   /* Close the temporary log we used while starting up, if it isn't already
    * gone. */
   close_temp_logs();
-  add_callback_log(LOG_WARN, LOG_ERR, control_event_logmsg);
+  add_callback_log(LOG_NOTICE, LOG_ERR, control_event_logmsg);
 
   /* Start backgrounding the process, if requested. */
   if (options->RunAsDaemon) {