added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_assignrank.c
index 9b4962711c9becfbeee688dd9d424d67d356bf7b..19a906a3df20e89898ce279c4ddcf60588d5c21f 100644 (file)
@@ -59,7 +59,7 @@ CMD_BIND(neonserv_cmd_assignrank) {
             //but first lookup the auth to check if it really exists
             struct neonserv_cmd_assignrank_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;
@@ -85,7 +85,7 @@ CMD_BIND(neonserv_cmd_assignrank) {
         } else {
             struct neonserv_cmd_assignrank_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;