amend logging to show Lua command