flush log file
This commit is contained in:
parent
c53f3f2fe3
commit
0355942740
1 changed files with 1 additions and 0 deletions
|
|
@ -240,6 +240,7 @@ clicon_log_str(int level,
|
||||||
if ((_logflags & CLICON_LOG_FILE) && _logfile){
|
if ((_logflags & CLICON_LOG_FILE) && _logfile){
|
||||||
flogtime(_logfile);
|
flogtime(_logfile);
|
||||||
fprintf(_logfile, "%s\n", msg);
|
fprintf(_logfile, "%s\n", msg);
|
||||||
|
fflush(_logfile);
|
||||||
}
|
}
|
||||||
if (_log_notify_cb){
|
if (_log_notify_cb){
|
||||||
static int cb = 0;
|
static int cb = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue