open log file in append mode

This commit is contained in:
Cloud Wu
2020-08-11 10:54:40 +08:00
parent d80ed7483d
commit c7386fe768

View File

@@ -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;
}