src/server/config/acl.c

changeset 453
4586d534f9b5
parent 415
d938228c382e
child 490
d218607f5a7e
--- a/src/server/config/acl.c	Sun Dec 04 13:01:00 2022 +0100
+++ b/src/server/config/acl.c	Thu Feb 23 21:09:33 2023 +0100
@@ -31,6 +31,7 @@
 #include <string.h>
 
 #include "acl.h"
+#include "logging.h"
 
 ACLFile* load_acl_file(const char *file) {
     FILE *in = fopen(file, "r");
@@ -115,7 +116,7 @@
     cxstring *tk = NULL; 
     ssize_t tkn = cx_strsplit_a(mp, cx_strcast(line), cx_str(":"), ACE_MAX_TOKENS, &tk);
     if(!tk || tkn < 3) {
-        log_ereport(LOG_FAILURE, "parse_ace: to few tokens: %.*s", (int)line.length, line.ptr);
+        ws_cfg_log(LOG_FAILURE, "parse_ace: to few tokens: %.*s", (int)line.length, line.ptr);
         return 1;
     }
     
@@ -158,7 +159,7 @@
     
     if(n >= tkn) {
         // to few tokens
-        log_ereport(LOG_FAILURE, "parse_ace: ace incomplete");
+        ws_cfg_log(LOG_FAILURE, "parse_ace: ace incomplete");
         return 1;
     }
     s = tk[n];
@@ -214,7 +215,7 @@
     }
     
     if(!complete) {
-        log_ereport(LOG_FAILURE, "parse_ace: ace incomplete");
+        ws_cfg_log(LOG_FAILURE, "parse_ace: ace incomplete");
         return 1;
     }
     

mercurial