Hello Norm,
yes, something in this respect should be done. Please register this to
feature request tracker along with the patch. We have to figure out if
there is a better way.
Regarding the memory leak, did you followed:
http://www.openser.org/dokuwiki/doku.php?id=memory
Cheers,
Daniel
On 08/16/06 20:06, Norman Brandinger wrote:
Hi,
I'm starting to look at a memory leak that caused an OpenSER failure.
One of the problems with debugging is that basically, it's either ON
or OFF for all of OpenSER.
I would like to suggest that incremental debugging settings be added
to reduce filling the logs with debugging information that isn't
needed. For example, in module/postgres/* I changed all L_DBG to
L_MODULE and made the following changes to the "dprint.h". Now, when
I start OpenSER with debug=7 I get the postgres messages without all
of the other diagnostics.
Perhaps some consensus can be reached for debugging settings between
L_INFO and L_DBG. Does anyone have any comments ?
Regards,
Norm
diff -r -u sip-server/dprint.h sip-server-/dprint.h
--- sip-server/dprint.h 2005-09-02 11:34:41.000000000 -0400
+++ sip-server-/dprint.h 2006-08-16 12:32:07.000000000 -0400
@@ -34,7 +34,8 @@
#define L_WARN 1
#define L_NOTICE 2
#define L_INFO 3
-#define L_DBG 4
+#define L_MODULE 7
+#define L_DBG 8
/* vars:*/
@@ -123,6 +124,9 @@
case L_INFO: \
syslog(LOG_INFO|log_facility, __VA_ARGS__); \
break; \
+ case L_MODULE: \
+
syslog(LOG_DEBUG|log_facility, __VA_ARGS__); \
+ break; \
case L_DBG: \
syslog(LOG_DEBUG|log_facility, __VA_ARGS__); \
break; \
@@ -155,6 +159,9 @@
case L_INFO: \
syslog(LOG_INFO|log_facility, fmt, ##args); \
break; \
+ case L_MODULE: \
+
syslog(LOG_DEBUG|log_facility, fmt, ##args); \
+ break; \
case L_DBG: \
syslog(LOG_DEBUG|log_facility, fmt, ##args); \
break; \
_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel
_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel