added new multi log system
[NeonServV5.git] / src / modules / global.mod / cmd_global_register.c
index 3e69c2674cb17d3e2e5a675e45a04672fd86728b..03fa9323f4294f3183a07e4707eea3ceacb7fe58 100644 (file)
@@ -96,7 +96,7 @@ CMD_BIND(global_cmd_register) {
             //but first lookup the auth to check if it really exists
             struct global_cmd_register_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;
@@ -125,7 +125,7 @@ CMD_BIND(global_cmd_register) {
         } else {
             struct global_cmd_register_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;