1
0
Fork 0

Add log level and test for functions

This commit is contained in:
Joao Gilberto Magalhaes 2022-08-25 17:32:11 -05:00
parent 7d441d6386
commit 733e73ae58
5 changed files with 179 additions and 37 deletions

View file

@ -48,7 +48,7 @@ class ProcessorInterface:
elif mode == "kubernetes":
return Kubernetes()
else:
Functions.log("FACTORY", "fatal", "Expected mode to be 'static', 'docker', 'swarm' or 'kubernetes'. I got '%s'" % (mode))
Functions.log("EASYHAPROXY", Functions.FATAL, "Expected mode to be 'static', 'docker', 'swarm' or 'kubernetes'. I got '%s'" % (mode))
return None
def refresh(self):