mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Append to log file, not overwrite
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
8bb7027393
commit
e211c395fa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue