From: Pekka Riikonen Date: Thu, 2 Oct 2003 11:59:56 +0000 (+0000) Subject: debug_string working in rehash too. X-Git-Tag: silc.toolkit.0.9.10~25 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=179eb4d9b833d3d2cc9f86db7bc75d90b6ebf377;p=silc.git debug_string working in rehash too. --- diff --git a/apps/silcd/server.c b/apps/silcd/server.c index 06e5d017..bc39e010 100644 --- a/apps/silcd/server.c +++ b/apps/silcd/server.c @@ -730,6 +730,16 @@ bool silc_server_rehash(SilcServer server) server->config = newconfig; silc_server_config_ref(&server->config_ref, server->config, server->config); +#ifdef SILC_DEBUG + /* Set debugging on if configured */ + if (server->config->debug_string) { + silc_debug = TRUE; + silc_log_set_debug_string(server->config->debug_string); + } else { + silc_debug = FALSE; + } +#endif /* SILC_DEBUG */ + SILC_LOG_DEBUG(("Server rehashed")); return TRUE;