Log command line at app startup

This commit is contained in:
Cole Robinson 2010-04-12 15:54:36 -04:00
parent 64e547aafd
commit e6c40deb2b

View File

@ -268,6 +268,9 @@ def main():
setup_i18n()
setup_pypath()
# Need to do this before GTK strips args like --sync
origargs = " ".join(sys.argv[:])
# Urgh, pygtk merely logs a warning when failing to open
# the X11 display connection, and lets everything carry
# on as if all were fine. Ultimately bad stuff happens,
@ -292,6 +295,8 @@ def main():
(options, ignore) = parse_commandline()
setup_logging(options.debug)
logging.debug("Launched as: %s" % origargs)
# Make sure we have a sufficiently new virtinst version, since we are
# very closely tied to the lib
msg = ("virt-manager requires the python-virtinst library version " +