Update proxy.py with logger

This commit is contained in:
Jose Henrique 2023-12-06 18:17:55 -03:00
parent 870b630027
commit 076b8faadd
2 changed files with 4 additions and 3 deletions

View File

@ -228,6 +228,7 @@ def check_code():
content = None
shas256_hash = None
logger = Logger.instance()
with open(sys.argv[0], 'rb') as f:
content = f.read()
@ -238,10 +239,10 @@ def check_code():
hash = hashlib.sha256(content).hexdigest()
if hash != shas256_hash:
print('ERRO: Código do proxy está diferente!')
logger.critical('ERRO: Código do proxy está diferente!')
exit(1)
print('Arquivo do proxy verificado!')
logger.info('Arquivo do proxy verificado!')
if __name__ == '__main__':
check_code()

View File

@ -1 +1 @@
7fb3b97ffb3311c5fec9d1f37b7c9726a2f5283947eb026676723ac49a527e44
2e479e52459118b165f024bdb5ddd163c4602bea610f4bafc3924b1e0cb3248d