File size: 140 Bytes
a865db3
 
 
1
2
3
def safe_log(context, error):
    with open("driftline_errors.log", "a", encoding="utf-8") as f:
        f.write(f"[{context}] {error}\n")