Call standard_logging_setup() before any logging is done

This commit is contained in:
Sumit Bose 2011-09-13 12:37:47 +02:00 committed by Martin Kosek
parent 1362202653
commit 579c8e56e0

View File

@ -87,14 +87,14 @@ def main():
if os.getegid() != 0: if os.getegid() != 0:
sys.exit("Must be root to setup server") sys.exit("Must be root to setup server")
installutils.check_server_configuration()
standard_logging_setup("/var/log/ipaserver-install.log", options.debug, filemode='a') standard_logging_setup("/var/log/ipaserver-install.log", options.debug, filemode='a')
print "\nThe log file for this installation can be found in /var/log/ipaserver-install.log" print "\nThe log file for this installation can be found in /var/log/ipaserver-install.log"
logging.debug('%s was invoked with options: %s' % (sys.argv[0], safe_options)) logging.debug('%s was invoked with options: %s' % (sys.argv[0], safe_options))
logging.debug("missing options might be asked for interactively later\n") logging.debug("missing options might be asked for interactively later\n")
installutils.check_server_configuration()
global fstore global fstore
fstore = sysrestore.FileStore('/var/lib/ipa/sysrestore') fstore = sysrestore.FileStore('/var/lib/ipa/sysrestore')