mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
open log file in append mode
This commit is contained in:
@@ -69,7 +69,7 @@ logger_cb(struct skynet_context * context, void *ud, int type, int session, uint
|
||||
int
|
||||
logger_init(struct logger * inst, struct skynet_context *ctx, const char * parm) {
|
||||
if (parm) {
|
||||
inst->handle = fopen(parm,"w");
|
||||
inst->handle = fopen(parm,"a");
|
||||
if (inst->handle == NULL) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user