We cannot wait for the db lock. Do not wait.

This commit is contained in:
Isaac Connor 2021-02-24 13:48:36 -05:00
parent 0d2febc958
commit 778a4f1d84
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ void Logger::logPrint(bool hex, const char * const filepath, const int line, con
} // end if level <= mFileLevel
if ( level <= mDatabaseLevel ) {
if (db_mutex.try_lock_for(1)) {
if (db_mutex.try_lock) {
int syslogSize = syslogEnd-syslogStart;
char escapedString[(syslogSize*2)+1];
mysql_real_escape_string(&dbconn, escapedString, syslogStart, syslogSize);