From 5ef9d4b35fc9abdf46c1b8dbc2c9eccd5c8f8c98 Mon Sep 17 00:00:00 2001 From: Florent De Neve Date: Tue, 11 Jun 2024 14:39:27 +0200 Subject: [PATCH] Upgrade 2 bottleneck logs to warns --- BedrockServer.cpp | 2 +- sqlitecluster/SQLitePool.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BedrockServer.cpp b/BedrockServer.cpp index e20853cae..a69747ee2 100644 --- a/BedrockServer.cpp +++ b/BedrockServer.cpp @@ -2044,7 +2044,7 @@ void BedrockServer::_acceptSockets() { uint64_t now = STimeNow(); if ((port != _controlPort) && (_outstandingSocketThreads >= _maxSocketThreads)) { if ((lastLogged < now - 3'000'000)) { - SINFO("Not accepting any new socket threads as we already have " << _outstandingSocketThreads << " of " << _maxSocketThreads); + SWARN("Not accepting any new socket threads as we already have " << _outstandingSocketThreads << " of " << _maxSocketThreads); lastLogged = now; } return; diff --git a/sqlitecluster/SQLitePool.cpp b/sqlitecluster/SQLitePool.cpp index 5a1d48385..bb1937a9b 100644 --- a/sqlitecluster/SQLitePool.cpp +++ b/sqlitecluster/SQLitePool.cpp @@ -60,7 +60,7 @@ size_t SQLitePool::getIndex(bool createHandle) { return index; } else { // Wait for a handle. - SINFO("Waiting for DB handle"); + SWARN("Waiting for DB handle"); _wait.wait(lock); } } @@ -88,7 +88,7 @@ void SQLitePool::returnToPool(size_t index) { } SQLiteScopedHandle::SQLiteScopedHandle(SQLitePool& pool, size_t index) : _pool(pool), _index(index) -{} +{} SQLiteScopedHandle::~SQLiteScopedHandle() { _pool.returnToPool(_index);