log the log line not the uninitialized sql

This commit is contained in:
Isaac Connor 2018-05-14 13:57:26 -04:00
parent 63e6cb1d62
commit 038c5f4e1a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}