GNOME Bugzilla – Bug 573857
networkmanager outputs a lot of messages to current active console tty
Last modified: 2009-03-05 11:34:00 UTC
Please describe the problem: The networkmanager daemon prints a lot of debug message to current active console tty. When I started the daemon and then switched to tty2 (already loged in), A message "NetworkManager: <info> DHCP daemon state is now 1 (starting) for interface eth0" poped out in the tty. I then switched to tty1, A message "NetworkManager: <info> DHCP daemon state is now 2 (bound) for interface eth0" poped out where the cursur was. After a while, I got my tty1 filled with the NetworkManager infos. However, when I then switched to tty2, there was only the "now 1" message. It seems that NetworkManager tends to prints its current log message to the current active console tty. Steps to reproduce: 1. Just start NetworkManager as root in a console terminal, direct all its output to /dev/null. Actual results: The current console is then filled with "NetworkManager: <info> ..." messages. When switch to other consoles, the messages then goes there. Expected results: The messages should go to some where else, not to the current colsole. Does this happen every time? Every time. Other information: The message is printed by a call nm_info in nm_device.c. The nm_info is actually g_message(...). So it is really strange that the g_message call outputs its message to the current tty.
The will go to syslog unless you've specified --no-daemon. I'd suggest adding some syslog rules to direct NetworkManager output to /var/log/NetworkManager.log or something like that instead of the console.
Thanks for your help. After starting the syslog-ng daemon, everything works just fine. Maybe this is a gentoo-related bug. The NetworkManager does not require syslog to start.
Yes, sounds like a packaging bug where the gentoo package isn't starting syslog before NM.