log the log line not the uninitialized sql
This commit is contained in:
parent
63e6cb1d62
commit
038c5f4e1a
|
@ -551,7 +551,7 @@ void Logger::logPrint( bool hex, const char * const filepath, const int line, co
|
||||||
} else {
|
} else {
|
||||||
Level tempDatabaseLevel = mDatabaseLevel;
|
Level tempDatabaseLevel = mDatabaseLevel;
|
||||||
databaseLevel(NOLOG);
|
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);
|
databaseLevel(tempDatabaseLevel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue