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