This commit is contained in:
sidya82 2015-04-02 17:00:20 +02:00
parent d07af7fcb1
commit 39009a1531
1 changed files with 2 additions and 6 deletions

View File

@ -200,8 +200,6 @@ def main():
global askFT, validateFT
askPM = []
validatePM = []
log.printL("Server start", Log.lvl.INFO)
config = configparser.ConfigParser()
if not os.path.isfile("dncserver.conf") :
config['NETWORK'] = {'port': '2222'}
@ -210,6 +208,8 @@ def main():
config.write(configfile)
config.read("dncserver.conf")
log = Log.Log(config["LOG"]["logdirectory"])
log.printL("Configuration Log", Log.lvl.INFO)
log.printL("Server start", Log.lvl.INFO)
#Init socket serv
@ -242,7 +242,3 @@ def main():
sock.close()
log.printL("Server shutdown", Log.lvl.INFO)
sys.exit(0)
if __name__ == '__main__':
main()