Allow `--verbose` to be enabled at runtime
Inspired by a conversation in #gnome-hackers
today, it might be useful for end users to debug gnome-software problems if they could enable verbose logging while g-s is running, without restarting it (and hence stopping whatever misbehaviour it’s doing).
Could probably achieve that by forwarding the --verbose
argument from one g-s instance to the main one through the GApplication.command_line
vfunc, and having it toggle the behaviour of the main instance’s GLogWriterFunc
from being non-verbose to being verbose.
A reminder: this can’t be handled by changing the GS_DEBUG
environment variable in the main process at runtime, because that’s not threadsafe.