print debugging in devrama

pull/116/head
Aevann 2023-02-09 06:03:20 +02:00
parent fc9b55c776
commit 463a32e021
1 changed files with 3 additions and 0 deletions

View File

@ -341,8 +341,11 @@ def change_settings(v:User, setting):
if val: word = 'enable'
else: word = 'disable'
print(setting, flush=True)
if setting == "under_attack":
new_security_level = 'under_attack' if val else 'high'
print(new_security_level, flush=True)
print(set_security_level(new_security_level), flush=True)
if not set_security_level(new_security_level):
abort(400, f'Failed to {word} under attack mode')