[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Note that DEBUG works; adjust python interface
Update of /home/or/cvsroot/control/doc
In directory moria:/tmp/cvs-serv27562/doc
Modified Files:
howto.txt
Log Message:
Note that DEBUG works; adjust python interface
Index: howto.txt
===================================================================
RCS file: /home/or/cvsroot/control/doc/howto.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- howto.txt 11 Jul 2005 20:18:33 -0000 1.3
+++ howto.txt 13 Jul 2005 05:15:36 -0000 1.4
@@ -310,7 +310,7 @@
};
conn.setEventHandler(eh);
conn.setEvents(Arrays.asList(new String[]{
- "INFO", "NOTICE", "WARN", "ERR"}));
+ "DEBUG", "INFO", "NOTICE", "WARN", "ERR"}));
In Python:
@@ -318,10 +318,10 @@
def msg(self, severity, message):
print "[%s] %s"%(severity, message)
con.set_event_handler(LogHandler())
- con.set_events(["INFO", "NOTICE", "WARN", "ERR"])
+ con.set_events(["DEBUG", "INFO", "NOTICE", "WARN", "ERR"])
Using the v1 protocol: (See x.x for information on parsing the results)
- SETEVENTS INFO NOTICE WARN ERR
+ SETEVENTS DEBUG INFO NOTICE WARN ERR
2.5.1. Kinds of events
@@ -369,7 +369,7 @@
These events include the number of bytes read, and the number of
bytes written.
- INFO, NOTICE, WARN, ERR: Tor has logged a message.
+ DEBUG, INFO, NOTICE, WARN, ERR: Tor has logged a message.
These events include the severity of the message, and its textual
content.