diff options
author | Chris Robinson <[email protected]> | 2017-07-01 15:34:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-07-01 15:34:42 -0700 |
commit | a14f6510342fe68b42c1d513eb425c8beb0481d9 (patch) | |
tree | 57ecf8733c7dec635730cc50f35188ed1ff450db /router/router.h | |
parent | 958fa342726666075c3a601d7a9cc62806268d5d (diff) |
Flush the log file after writing
Diffstat (limited to 'router/router.h')
-rw-r--r-- | router/router.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/router/router.h b/router/router.h index 6d34cadd..0749ffad 100644 --- a/router/router.h +++ b/router/router.h @@ -168,15 +168,24 @@ extern FILE *LogFile; #define TRACE(...) do { \ if(LogLevel >= LogLevel_Trace) \ + { \ fprintf(LogFile, "AL Router (II): " __VA_ARGS__); \ + fflush(LogFile); \ + } \ } while(0) #define WARN(...) do { \ if(LogLevel >= LogLevel_Warn) \ + { \ fprintf(LogFile, "AL Router (WW): " __VA_ARGS__); \ + fflush(LogFile); \ + } \ } while(0) #define ERR(...) do { \ if(LogLevel >= LogLevel_Error) \ + { \ fprintf(LogFile, "AL Router (EE): " __VA_ARGS__); \ + fflush(LogFile); \ + } \ } while(0) #endif /* ROUTER_ROUTER_H */ |