mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Rework log messages
Former-commit-id: eac93c0fd78fdf353e940d08df3cabf0b962a3e2
This commit is contained in:
@@ -73,7 +73,7 @@ void BoblightClientConnection::readData()
|
||||
// drop messages if the buffer is too full
|
||||
if (_receiveBuffer.size() > 100*1024)
|
||||
{
|
||||
std::cout << "Boblight server drops messages" << std::endl;
|
||||
std::cout << "BOBLIGHT INFO: server drops messages (buffer full)" << std::endl;
|
||||
_receiveBuffer.clear();
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ void BoblightClientConnection::handleMessage(const QString & message)
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << "unknown boblight message: " << message.toStdString() << std::endl;
|
||||
std::cout << "BOBLIGHT INFO: unknown boblight message: " << message.toStdString() << std::endl;
|
||||
}
|
||||
|
||||
void BoblightClientConnection::sendMessage(const std::string & message)
|
||||
|
@@ -14,7 +14,7 @@ BoblightServer::BoblightServer(Hyperion *hyperion, const int priority,uint16_t p
|
||||
{
|
||||
if (!_server.listen(QHostAddress::Any, port))
|
||||
{
|
||||
throw std::runtime_error("Boblight server could not bind to port");
|
||||
throw std::runtime_error("BOBLIGHT ERROR: server could not bind to port");
|
||||
}
|
||||
|
||||
// Set trigger for incoming connections
|
||||
@@ -39,7 +39,7 @@ void BoblightServer::newConnection()
|
||||
|
||||
if (socket != nullptr)
|
||||
{
|
||||
std::cout << "New boblight connection" << std::endl;
|
||||
std::cout << "BOBLIGHT INFO: new connection" << std::endl;
|
||||
BoblightClientConnection * connection = new BoblightClientConnection(socket, _priority, _hyperion);
|
||||
_openConnections.insert(connection);
|
||||
|
||||
@@ -50,7 +50,7 @@ void BoblightServer::newConnection()
|
||||
|
||||
void BoblightServer::closedConnection(BoblightClientConnection *connection)
|
||||
{
|
||||
std::cout << "Boblight connection closed" << std::endl;
|
||||
std::cout << "BOBLIGHT INFO: connection closed" << std::endl;
|
||||
_openConnections.remove(connection);
|
||||
|
||||
// schedule to delete the connection object
|
||||
|
Reference in New Issue
Block a user