trivial: fu-util: fix debug output for devices

I noticed this was only actually working for fwupdtool, and that's
because fwupdmgr doesn't set FWUPD_VERBOSE currently in the environment.
This commit is contained in:
Mario Limonciello 2019-08-26 23:43:40 -05:00 committed by Mario Limonciello
parent d8aaa21cde
commit b76960efe0

View File

@ -2414,6 +2414,7 @@ main (int argc, char *argv[])
/* set verbose? */ /* set verbose? */
if (verbose) { if (verbose) {
g_setenv ("G_MESSAGES_DEBUG", "all", FALSE); g_setenv ("G_MESSAGES_DEBUG", "all", FALSE);
g_setenv ("FWUPD_VERBOSE", "1", FALSE);
} else { } else {
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,
fu_util_ignore_cb, NULL); fu_util_ignore_cb, NULL);