The only purpose of this function is to give access to print or printerr from pygobject.
libnm can do debug logging by setting LIBNM_CLIENT_DEBUG and uses thereby printerr or print. A plain "print()" function in python is not in sync with these functions (it implements additional buffering). By using print, the same logging mechanisms can be used.
output_mode |
if 1 it uses print. If 2, it uses printerr. If 0, it uses either print or printerr, depending on LIBNM_CLIENT_DEBUG (and the "stdout" flag). |
msg |
the message to print. The function does not append a trailing newline. |