mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
[WebUI] Improve log messages
This commit is contained in:
parent
f74e2b0130
commit
157b809e21
1 changed files with 3 additions and 2 deletions
|
@ -99,10 +99,11 @@ void WebUI::init()
|
|||
? QHostAddress::Any : QHostAddress(serverAddressString);
|
||||
bool success = m_httpServer->listen(address, m_port);
|
||||
if (success) {
|
||||
logger->addMessage(tr("Web UI: Now listening on port %1").arg(m_port));
|
||||
logger->addMessage(tr("Web UI: Now listening on IP: %1, port: %2").arg(serverAddressString).arg(m_port));
|
||||
}
|
||||
else {
|
||||
const QString errorMsg = tr("Web UI: Unable to bind to port %1. %2").arg(m_port).arg(m_httpServer->errorString());
|
||||
const QString errorMsg = tr("Web UI: Unable to bind to IP: %1, port: %2. Reason: %3")
|
||||
.arg(serverAddressString).arg(m_port).arg(m_httpServer->errorString());
|
||||
logger->addMessage(errorMsg, Log::CRITICAL);
|
||||
#ifdef DISABLE_GUI
|
||||
qCritical() << errorMsg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue