From e211c395faa1772d16733820bf4d37cb1b1870e4 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 21 Dec 2018 23:02:19 +0000 Subject: [PATCH] Append to log file, not overwrite Signed-off-by: Yuxuan Shui --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index c75ba3d..9a82927 100644 --- a/src/log.c +++ b/src/log.c @@ -264,7 +264,7 @@ static const struct log_ops file_logger_ops = { }; struct log_target *file_logger_new(const char *filename) { - FILE *f = fopen(filename, "w+"); + FILE *f = fopen(filename, "a"); if (!f) { return NULL; }