added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_voiceall.c
index fd4bafb41c5c2f6d74094b58f3bdda2a40ba72f8..a1c2325e7103e853c5a0951a887fad7e9635f648 100644 (file)
@@ -33,7 +33,7 @@ struct neonserv_cmd_voiceall_cache {
 CMD_BIND(neonserv_cmd_voiceall) {
     struct neonserv_cmd_voiceall_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;