projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new multi log system
[NeonServV5.git]
/
src
/
EventLogger.c
diff --git
a/src/EventLogger.c
b/src/EventLogger.c
index 77956d799254e639c21a29fc3b8233d4e7713960..f5a8a315942489eb53c0be990d28fc29fbdd8497 100644
(file)
--- a/
src/EventLogger.c
+++ b/
src/EventLogger.c
@@
-21,6
+21,7
@@
#include "UserNode.h"
#include "ChanNode.h"
#include "DBHelper.h"
#include "UserNode.h"
#include "ChanNode.h"
#include "DBHelper.h"
+#include "log.h"
static struct Event *first_event = NULL, *last_event = NULL;
static struct Event *first_event = NULL, *last_event = NULL;
@@
-28,7
+29,7
@@
struct Event *createEvent(struct ClientSocket *client, struct UserNode *user, st
struct Event *event = malloc(sizeof(*event));
if (!event)
{
struct Event *event = malloc(sizeof(*event));
if (!event)
{
- p
error("malloc() failed"
);
+ p
rintf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return NULL;
}
event->client = client;
return NULL;
}
event->client = client;