mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
[+] New history system
Now every server related event is logged. Users will soon be able to access their server's history on the front as well. Co-authored-by: Antoninop <antoninopiraino70@gmail.com>
This commit is contained in:
parent
91e4258d3b
commit
d462ffa9ec
@ -83,7 +83,7 @@ def log_action(user_id: str, name: str, action: str, details: str = None):
|
|||||||
with open(log_file, "a+") as log_file:
|
with open(log_file, "a+") as log_file:
|
||||||
log_file.write(json.dumps(event_log) + "\n")
|
log_file.write(json.dumps(event_log) + "\n")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log_error(type(e).__name__, str(e)+" error trying to access history file on not existing server.")
|
log_error(type(e).__name__, str(e) + " error trying to access history file on not existing server.")
|
||||||
|
|
||||||
|
|
||||||
def kebab_to_camel_case(s: str) -> str:
|
def kebab_to_camel_case(s: str) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user