Changed depricated warn to warning

master
Ruakij 3 years ago
parent faa2bc3834
commit 70d3a70c6a

@ -23,10 +23,10 @@ def setupEnvironment():
(all, some) = copyAllFiles("data/", "/data") (all, some) = copyAllFiles("data/", "/data")
if all: if all:
log.warn("Configuration-files were created!") log.warning("Configuration-files were created!")
log.warn(" Make sure to change them according to your setup") log.warning(" Make sure to change them according to your setup")
elif some: elif some:
log.warn("Some configuration-files were recreated, because they were missing") log.warning("Some configuration-files were recreated, because they were missing")
def copyAllFiles(src, dst, overwrite=False): def copyAllFiles(src, dst, overwrite=False):
all=True all=True
@ -162,8 +162,8 @@ def updateNsData(zone):
log.info(f'{adaptedZone} |\tFinished') log.info(f'{adaptedZone} |\tFinished')
except: except:
log.warn(f'{adaptedZone} |\t{sys.exc_info()}') log.warning(f'{adaptedZone} |\t{sys.exc_info()}')
log.warn(f'{adaptedZone} |\tUpdating NS-Data failed!') log.warning(f'{adaptedZone} |\tUpdating NS-Data failed!')
if(hasToDelete): if(hasToDelete):
deleteFile(dumpFile) deleteFile(dumpFile)

Loading…
Cancel
Save