From 5754b7c03e76d1a45b7daf1220127a4b4c82887c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 11 Feb 2021 21:15:46 +0300 Subject: oops... forgotten to roll back that debug variant --- plugins/Dbx_sqlite/src/utils.cpp | 12 ++---------- 1 file 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 - -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); } -- cgit v1.2.3