diff options
author | George Hazan <ghazan@miranda.im> | 2021-02-11 21:15:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-02-11 21:15:46 +0300 |
commit | 5754b7c03e76d1a45b7daf1220127a4b4c82887c (patch) | |
tree | 5806d11939bb1be21fbd2e69f546fdd8b91751c6 /plugins/Dbx_sqlite | |
parent | 3d998d475f053382be6d20965b652f4f36973f52 (diff) |
oops... forgotten to roll back that debug variant
Diffstat (limited to 'plugins/Dbx_sqlite')
-rw-r--r-- | plugins/Dbx_sqlite/src/utils.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/Dbx_sqlite/src/utils.cpp b/plugins/Dbx_sqlite/src/utils.cpp index 5c3202fef5..174fe9d394 100644 --- a/plugins/Dbx_sqlite/src/utils.cpp +++ b/plugins/Dbx_sqlite/src/utils.cpp @@ -1,7 +1,4 @@ #include "stdafx.h" -#include <time.h> - -static HANDLE hLogger; void logError(int rc, const char *szFile, int line) { @@ -12,11 +9,6 @@ void logError(int rc, const char *szFile, int line) return; } - if (hLogger == nullptr) { - wchar_t wszFileName[MAX_PATH]; - wsprintf(wszFileName, L"C:\\Users\\user\\Desktop\\sqlite.%d.log", (int)time(0)); - hLogger = mir_createLog("mdbx", L"mdbx", wszFileName, 0); - } - - mir_writeLogA(hLogger, "sqlite: assertion failed (%s, %d): %d\n", szFile, line, rc); + _ASSERT(rc == 0); + Netlib_Logf(0, "SQLITE error %d (%s, %d)", rc, szFile, line); } |