Append to log file, not overwrite
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
8bb7027393
commit
e211c395fa
|
@ -264,7 +264,7 @@ static const struct log_ops file_logger_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct log_target *file_logger_new(const char *filename) {
|
struct log_target *file_logger_new(const char *filename) {
|
||||||
FILE *f = fopen(filename, "w+");
|
FILE *f = fopen(filename, "a");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue