diff options
-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); } |