src/server/config/objconf.c

changeset 453
4586d534f9b5
parent 425
6440171c257f
child 459
f21b4ff81c01
--- a/src/server/config/objconf.c	Sun Dec 04 13:01:00 2022 +0100
+++ b/src/server/config/objconf.c	Thu Feb 23 21:09:33 2023 +0100
@@ -27,6 +27,7 @@
  */
 
 #include "objconf.h"
+#include "logging.h"
 
 #include <string.h>
 
@@ -233,7 +234,7 @@
         case LINE_BEGIN_TAG: {
             ConfigTag *tag = cfg_parse_begin_tag(line, conf->parser.mp);
             if(tag == NULL) {
-                log_ereport(LOG_FAILURE, "Parse error in %s", conf->file);
+                ws_cfg_log(LOG_FAILURE, "Parse error in %s", conf->file);
                 exit(-1); // TODO: better error handling
             }
             tag->begin = begin;
@@ -346,7 +347,7 @@
             break;
         }
         default: {
-            log_ereport(LOG_FAILURE, "objconf: unknown tag");
+            ws_cfg_log(LOG_FAILURE, "objconf: unknown tag");
             return 1;
         }
     }
@@ -357,7 +358,7 @@
 int objconf_on_end_tag(ObjectConfig *conf, cxmutstr tagname) {
     int type = cfg_get_tag_type(cx_strcast(tagname));
     if(type == -1) {
-        log_ereport(LOG_FAILURE, "objconf: unknown tag");
+        ws_cfg_log(LOG_FAILURE, "objconf: unknown tag");
         return 1;
     } else {
         if(type == TAG_OBJECT) {

mercurial