From 038c5f4e1afa872b0946a8b14cb729752da6666e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 14 May 2018 13:57:26 -0400 Subject: [PATCH] log the log line not the uninitialized sql --- src/zm_logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_logger.cpp b/src/zm_logger.cpp index ca17da92c..409736ca8 100644 --- a/src/zm_logger.cpp +++ b/src/zm_logger.cpp @@ -551,7 +551,7 @@ void Logger::logPrint( bool hex, const char * const filepath, const int line, co } else { Level tempDatabaseLevel = mDatabaseLevel; databaseLevel(NOLOG); - Error("Can't insert log entry: sql(%s) error(db is locked)", sql); + Error("Can't insert log entry: sql(%s) error(db is locked)", logString); databaseLevel(tempDatabaseLevel); } }