mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-11 07:55:52 -06:00
Remove logging_setup, as it is always true.
This commit is contained in:
parent
66fb366416
commit
90d5748e09
@ -37,14 +37,10 @@ from virtinst import cli as virtinstcli
|
||||
from virtcli import cliutils, cliconfig
|
||||
|
||||
|
||||
logging_setup = False
|
||||
|
||||
|
||||
GObject.threads_init()
|
||||
|
||||
|
||||
def _show_startup_error(msg, details):
|
||||
if logging_setup:
|
||||
logging.debug("Error starting virt-manager: %s\n%s", msg, details,
|
||||
exc_info=True)
|
||||
from virtManager.error import vmmErrorDialog
|
||||
@ -178,8 +174,6 @@ def main():
|
||||
(options, leftovers) = parse_commandline()
|
||||
|
||||
virtinstcli.setupLogging("virt-manager", options.debug, False, False)
|
||||
global logging_setup
|
||||
logging_setup = True
|
||||
|
||||
import virtManager
|
||||
logging.debug("virt-manager version: %s", cliconfig.__version__)
|
||||
|
Loading…
Reference in New Issue
Block a user