From 39009a1531a180dfcd394dd341ef283f446172a2 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Thu, 2 Apr 2015 17:00:20 +0200 Subject: [PATCH] Poulet --- serveur/Server.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/serveur/Server.py b/serveur/Server.py index 747cedb..47362f2 100644 --- a/serveur/Server.py +++ b/serveur/Server.py @@ -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() \ No newline at end of file