summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-02-11 21:15:46 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-02-11 21:15:46 +0300
commit5754b7c03e76d1a45b7daf1220127a4b4c82887c (patch)
tree5806d11939bb1be21fbd2e69f546fdd8b91751c6
parent3d998d475f053382be6d20965b652f4f36973f52 (diff)
oops... forgotten to roll back that debug variant
-rw-r--r--plugins/Dbx_sqlite/src/utils.cpp12
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);
}