Always use stderr instead of stdout for server logs

This commit is contained in:
Guillaume Meunier
2025-03-25 21:15:01 +01:00
parent 8648e41a5a
commit 345db32bb1
4 changed files with 7 additions and 29 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ void avahi_publisher::avahi_entry_group_callback(
switch (state)
{
case AVAHI_ENTRY_GROUP_ESTABLISHED:
std::cout << "Service published: " << self->name << std::endl;
std::cerr << "Service published: " << self->name << std::endl;
case AVAHI_ENTRY_GROUP_FAILURE:
case AVAHI_ENTRY_GROUP_REGISTERING:
case AVAHI_ENTRY_GROUP_UNCOMMITED: