st2 icon indicating copy to clipboard operation
st2 copied to clipboard

JsonFormatter logging does not include liveaction_db results

Open s-bed opened this issue 2 years ago • 0 comments

SUMMARY

When using JsonFormatter on the actionrunner, liveaction_db is stripped from the log entry as it is not properly JSON formatted

STACKSTORM VERSION

Paste the output of st2 --version: st2 3.8.0, on Python 3.6.8

OS, environment, install method

Post what OS you are running this on, along with any other relevant information/

Oracle Linux Server 7.9 installed with packages

Steps to reproduce the problem

Log Audits as JsonFormatter, run an action that would usually fail

Expected Results

The liveaction_db results should've been appended to the log entry

Actual Results

When the AUDIT entry for a failed actionrunner job is written to log, the message only contains "Liveaction completed".

{"asctime": "2023-09-28 23:00:18,861", "thread": 140539033242664, "levelname": "AUDIT", "module": "base", "message": "Liveaction completed"}

s-bed avatar Sep 29 '23 12:09 s-bed