src/server/daemon/config.c

changeset 443
ef3c8a0e1fee
parent 440
d77b8f3e14e2
child 444
96d2ba2f28db
--- a/src/server/daemon/config.c	Sun Nov 27 10:20:10 2022 +0100
+++ b/src/server/daemon/config.c	Sun Nov 27 13:33:30 2022 +0100
@@ -185,6 +185,7 @@
     cx_foreach(ConfigNode *, runtimeobj, iter) {
         if(cfg_handle_runtime(serverconfig, runtimeobj)) {
             // error
+            log_ereport(LOG_FAILURE, "server.conf runtime");
             return NULL;
         }
     }
@@ -196,6 +197,7 @@
     iter = cxListIterator(list, 0);
     cx_foreach(ConfigNode *, elm, iter) {
         if(cfg_handle_threadpool(serverconfig, elm)) {
+            log_ereport(LOG_FAILURE, "server.conf threadpool");
             return NULL;
         }
     }
@@ -212,7 +214,8 @@
     iter = cxListIterator(list, 0);
     cx_foreach(ConfigNode *, elm, iter) {
         if(cfg_handle_eventhandler(serverconfig, elm)) {
-            // error            
+            // error
+            log_ereport(LOG_FAILURE, "cannot create event handler");
             return NULL;
         }
     }
@@ -222,7 +225,7 @@
         return NULL;
     }
     cxListDestroy(list);
-    
+     
     // load Listener config
     log_ereport(LOG_DEBUG, "apply config: Listener");
     list = serverconfig_get_node_list(serverconf->root, CONFIG_NODE_OBJECT, cx_str("Listener"));

mercurial