added new multi log system
[NeonServV5.git] / src / modules / global.mod / cmd_global_setaccess.c
index f568ff0004e9d7e479b8ebacf9f100d7955b6948..8753cc30ac74442275e9b83c7a6daa4dfc057de0 100644 (file)
@@ -60,7 +60,7 @@ CMD_BIND(global_cmd_setaccess) {
             //but first lookup the auth to check if it really exists
             struct global_cmd_setaccess_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;
@@ -86,7 +86,7 @@ CMD_BIND(global_cmd_setaccess) {
         } else {
             struct global_cmd_setaccess_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;