- removed dprintf forn configure.in

- added "uname -a" string to startup/accept debug copnnection
This commit is contained in:
Thomas Ries
2005-01-02 11:43:38 +00:00
parent 26fe550029
commit 8edac3c2b7
6 changed files with 10 additions and 9 deletions

View File

@@ -19,7 +19,9 @@
#
AM_CFLAGS = -Wall -DBUILDSTR=\"`cat .buildno`\" -D_GNU_SOURCE
AM_CFLAGS = -Wall -D_GNU_SOURCE \
-DBUILDSTR="\"`cat .buildno`\"" \
-DUNAME="\"`uname -a`\""
#
# Siproxd itself

View File

@@ -176,6 +176,7 @@ void log_tcp_connect(void) {
} else {
debug_fd=accept(debug_listen_fd, NULL, NULL);
INFO("Accepted DEBUG TCP connection [fd=%i]", debug_fd);
DEBUGC(DBCLASS_ALL,UNAME);
}
}

View File

@@ -34,6 +34,7 @@
#define DBCLASS_RTP 0x00000200 /* RTP proxy */
#define DBCLASS_ACCESS 0x00000400 /* Access list evaluation */
#define DBCLASS_AUTH 0x00000800 /* Authentication */
#define DBCLASS_ALL 0xffffffff /* All classes */
void log_set_pattern(int pattern);

View File

@@ -178,7 +178,8 @@ int main (int argc, char *argv[])
/*
* Init stuff
*/
INFO(PACKAGE"-"VERSION"-"BUILDSTR" started");
INFO(PACKAGE"-"VERSION"-"BUILDSTR" starting up");
DEBUGC(DBCLASS_ALL,UNAME);
/* read the config file */
if (read_config(configfile, config_search) == STS_FAILURE) exit(1);
@@ -251,6 +252,8 @@ int main (int argc, char *argv[])
*/
log_set_silence(configuration.silence_log);
INFO(PACKAGE"-"VERSION"-"BUILDSTR" started");
DEBUGC(DBCLASS_ALL,UNAME);
/*
* Main loop
*/