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
{{ message }}
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
When diagnosing errors in this module, troubleshooting is often frustrated by the fact that every log message has the same line number. For example:
2021/03/29 21:39:04: INFO: /opt/microsoft/omsconfig/Scripts/3.x/Scripts/nxOMSAutomationWorker.py(844):
Test_Marshall returned [-1]: worker manager isn't running or is not latest
2021/03/29 21:39:04: INFO: /opt/microsoft/omsconfig/Scripts/3.x/Scripts/nxOMSAutomationWorker.py(844):
nxautomation was found on the system
2021/03/29 21:39:04: DEBUG: /opt/microsoft/omsconfig/Scripts/3.x/Scripts/nxOMSAutomationWorker.py(844):
No old worker process to terminate
2021/03/29 21:39:04: DEBUG: /opt/microsoft/omsconfig/Scripts/3.x/Scripts/nxOMSAutomationWorker.py(844):
Killing the instance of worker manager already running
2021/03/29 21:39:04: DEBUG: /opt/microsoft/omsconfig/Scripts/3.x/Scripts/nxOMSAutomationWorker.py(844):
No process to terminate
Every message shows line 844, which, unsurprisingly, is the line number of the python function which wraps around the native logging function:
LG().Log('DEBUG', 'PackageGroup value is '+repr(PackageGroup))
As a feature request to preserve the useful line number data, I suggest calling the python Log() function directly or finding another way to preserve this important info in the logged message.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When diagnosing errors in this module, troubleshooting is often frustrated by the fact that every log message has the same line number. For example:
Every message shows line 844, which, unsurprisingly, is the line number of the python function which wraps around the native logging function:
PowerShell-DSC-for-Linux/Providers/Scripts/3.x/Scripts/nxOMSAutomationWorker.py
Line 844 in bf2df6d
In some scripts, the native function is called directly allowing logs like this:
In the above log message from
nxPackage.py
you can see that theLog()
function is called directly so we get a useful line number (236):PowerShell-DSC-for-Linux/Providers/Scripts/3.x/Scripts/nxPackage.py
Line 236 in bf2df6d
As a feature request to preserve the useful line number data, I suggest calling the python
Log()
function directly or finding another way to preserve this important info in the logged message.The text was updated successfully, but these errors were encountered: