[or-cvs] Use new log format; convert old format to new format.

Nick Mathewson nickm at seul.org
Fri Nov 5 05:50:36 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv8578/src/common

Modified Files:
	log.c log.h 
Log Message:
Use new log format; convert old format to new format.

Index: log.c
===================================================================
RCS file: /home/or/cvsroot/src/common/log.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- log.c	3 Nov 2004 21:53:12 -0000	1.60
+++ log.c	5 Nov 2004 05:50:34 -0000	1.61
@@ -397,6 +397,11 @@
   return -1;
 }
 
+const char *log_level_to_string(int level)
+{
+  return sev_to_string(level);
+}
+
 int get_min_log_level(void)
 {
   logfile_t *lf;

Index: log.h
===================================================================
RCS file: /home/or/cvsroot/src/common/log.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- log.h	3 Nov 2004 18:27:19 -0000	1.31
+++ log.h	5 Nov 2004 05:50:34 -0000	1.32
@@ -56,6 +56,7 @@
 typedef void (*log_callback)(int severity, const char *msg);
 
 int parse_log_level(const char *level);
+const char *log_level_to_string(int level);
 void add_stream_log(int severityMin, int severityMax, const char *name, FILE *stream);
 int add_file_log(int severityMin, int severityMax, const char *filename);
 #ifdef HAVE_SYSLOG_H



More information about the tor-commits mailing list