projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4dfa24
)
debug_string working in rehash too.
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 2 Oct 2003 11:59:56 +0000
(11:59 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 2 Oct 2003 11:59:56 +0000
(11:59 +0000)
apps/silcd/server.c
patch
|
blob
|
history
diff --git
a/apps/silcd/server.c
b/apps/silcd/server.c
index 06e5d017a165c27f9b9bb2cd6442f9646c2f1ddd..bc39e010828c788bafde4ff3ff436b163ceb6426 100644
(file)
--- 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;