log : do not append to existing log + disable file line func by default
This commit is contained in:
parent
b97958a511
commit
6b4c65be83
2 changed files with 9 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include "llama.h"
|
#include "llama.h"
|
||||||
|
|
||||||
|
#define LOG_NO_FILE_LINE_FUNCTION
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -378,11 +378,11 @@ inline FILE *_log_handler1(bool change = false, LogTriState disable = LogTriStat
|
||||||
}
|
}
|
||||||
|
|
||||||
logfile = nullptr;
|
logfile = nullptr;
|
||||||
logfile = fopen(filename.c_str(), "a");
|
logfile = fopen(filename.c_str(), "w");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
logfile = fopen(filename.c_str(), "a");
|
logfile = fopen(filename.c_str(), "w");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue