You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ST2 v3.2, the st2sensorcontainer.log, and in v3.3 all st2 logs have the module name replaced with (unknown file)
STACKSTORM VERSION
v3.2, v3.3, EL8 and U18.04
Python 3.6
OS, environment, install method
One Line and Ansible so far.
Steps to reproduce the problem
Show how to reproduce the problem, using a minimal test-case. Make sure to include any content
(pack content - workflows, actions, etc.) which are needed to reproduce the problem.
Expected Results
No (unknown file), but the python module name.
Actual Results
2020-10-13 17:55:13,787 140460262501416 INFO (unknown file) [-] Sensor linux.FileWatchSensor started
2020-10-13 17:55:15,444 139725927337456 INFO (unknown file) [-] No config found for sensor "FileWatchSensor"
2020-10-13 17:55:15,446 139725927337456 INFO (unknown file) [-] Watcher started
2020-10-13 17:55:15,446 139725927337456 INFO (unknown file) [-] Running sensor initialization code
2020-10-13 17:55:15,454 139725927337456 INFO (unknown file) [-] Running sensor in passive mode
The text was updated successfully, but these errors were encountered:
punkrokk
changed the title
ST2 logs writing "(unknown file)" in log prefix
ST2 logs writing "(unknown file)" in log prefix, instead of module name
Oct 14, 2020
This function has the signature for the 2.7 python version and returns a 3-element tuple as python 2 expects. However, in Python 3 a new argument is specified called stack_info and the returned value from logging.findCaller() is expected to be a 4-element tuple. This 4th element is stack information derived from the stack_info value passed in.
We currently do not handle these cases and are returning an incorrectly sized tuple from the function in python 3.
SUMMARY
In ST2 v3.2, the st2sensorcontainer.log, and in v3.3 all st2 logs have the
module
name replaced with(unknown file)
STACKSTORM VERSION
v3.2, v3.3, EL8 and U18.04
Python 3.6
OS, environment, install method
One Line and Ansible so far.
Steps to reproduce the problem
Show how to reproduce the problem, using a minimal test-case. Make sure to include any content
(pack content - workflows, actions, etc.) which are needed to reproduce the problem.
Expected Results
No
(unknown file)
, but the python module name.Actual Results
The text was updated successfully, but these errors were encountered: