From 77a07d941e3422fe8b1e2f23293362c4f6606cc0 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 7 Jun 2019 13:39:05 -0300 Subject: [PATCH] Fixing HLLAPI debug mode logs. --- src/hllapi/client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hllapi/client.h b/src/hllapi/client.h index a08611f..640e60a 100644 --- a/src/hllapi/client.h +++ b/src/hllapi/client.h @@ -39,7 +39,7 @@ #if defined(DEBUG) && defined(_WIN32) #undef trace - #define trace( fmt, ... ) { FILE *out = fopen("c:\\Users\\Perry\\hllapi.log","a"); if(out) { fprintf(out, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fclose(out); } } + #define trace( fmt, ... ) fprintf(stderr, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fflush(stderr); #endif // DEBUG #ifdef __cplusplus -- libgit2 0.21.2