diff --git a/web/core/mw.py b/web/core/mw.py index 4b6c875a4..e935077c7 100644 --- a/web/core/mw.py +++ b/web/core/mw.py @@ -604,7 +604,7 @@ def writeDbLog(stype, msg, args=(), uid=1): try: import thisdb format_msg = getInfo(msg, args) - thisdb.addLog(stype, format_msg, uid) + thisdb.addLog(stype, format_msg, uid=uid) return True except Exception as e: print("writeDbLog:"+str(e))