-
-
Notifications
You must be signed in to change notification settings - Fork 419
Update all Log Message to be more user-friendly #1224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added more user-friendly Info level logging
|
All ERROR level now have a unique Error Code (to be added in the Wiki). This is also removing the LOG_VERBOSE level in favor of the LOG_DEBUG : Realistically the LOG_VERBOSE was more of a glorified LOG_DEBUG. The verbose level command line are still valid but will assign the LOG_DEBUG level until we have "cleared" reference to the verbose level from wiki / documentation. Please test that the LOG_DEBUG entries shows on your system when using the following commands : |
|
I am not seeing the LOG_DEBUG messages in the log file when I launch OBS with --distroav-debug or --distroav-log=debug. Looking at the code, it seems these command line arguments, specific to DistroAV are only used in the code checking for updates to DistroAV. It also outputs: "config: DistroAV log level set to I like the reformatting and the info, however, if we want to have LOG_DEBUG messages only output for distroAV using the command line args, we need to modify our obs_log to do this: |
|
Thanks for pointing this out. Seems that there are more location where the log can be improved (in the update system for example). |
Trouffman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this we have the Preview Update being called twice (as shown in the log.
This is not blocking for release but should be looked into (possible performance tweak)
13:49:12.244: [distroav] NDI Output Updated. 'OBS-PGM'
13:49:12.247: [distroav] NDI main output started
13:49:12.247: [distroav] NDI Output Updated. 'OBS-PRV'
13:49:12.247: [distroav] NDI Output Updated. 'OBS-PRV'
13:47:56.790: [distroav] +main_output_deinit()
13:47:56.790: [distroav] main_output_deinit: NDI main output is not initialized
13:47:56.790: [distroav] -main_output_deinit()
13:47:56.790: [distroav] main_output_init: creating NDI main output 'OBS-PGM'
13:47:56.790: [distroav] +ndi_output_getdefaults()
13:47:56.790: [distroav] -ndi_output_getdefaults()
13:47:56.790: [distroav] +ndi_output_create(name='OBS-PGM', groups='', ...)
13:47:56.790: [distroav] ndi_output_update(name='OBS-PGM', groups='', ...)
13:47:56.790: [distroav] NDI Output Updated. 'OBS-PGM'
13:47:56.790: [distroav] ndi_output_update(name='OBS-PGM', groups='', uses_video='true', uses_audio='true')
13:47:56.790: [distroav] -ndi_output_create(name='OBS-PGM', groups='', ...)
13:47:56.790: [distroav] main_output_init: created NDI main output 'OBS-PGM'
13:47:56.790: [distroav] +main_output_start()
13:47:56.790: [distroav] main_output_start: starting NDI main output 'OBS-PGM'
13:47:56.790: [distroav] +ndi_output_start(name='OBS-PGM', groups='', ...)
13:47:56.793: [distroav] +on_main_output_started()
13:47:56.793: [distroav] -on_main_output_started()
13:47:56.793: [distroav] NDI main output started
13:47:56.793: [distroav] 'OBS-PGM' ndi_output_start: ndi output started
13:47:56.793: [distroav] -ndi_output_start(name='OBS-PGM', groups=''...)
13:47:56.793: [distroav] main_output_start: successfully started NDI main output 'OBS-PGM'
13:47:56.793: [distroav] -main_output_start()
13:47:56.793: [distroav] -main_output_init()
13:47:56.793: [distroav] +preview_output_init()
13:47:56.793: [distroav] +preview_output_deinit()
13:47:56.793: [distroav] preview_output_deinit: NDI preview output is not initialized. Nothing to deinit.
13:47:56.793: [distroav] -preview_output_deinit()
13:47:56.793: [distroav] preview_output_init: creating NDI Preview Output 'OBS-PRV'
13:47:56.793: [distroav] +ndi_output_getdefaults()
13:47:56.793: [distroav] -ndi_output_getdefaults()
13:47:56.793: [distroav] +ndi_output_create(name='OBS-PRV', groups='', ...)
13:47:56.793: [distroav] ndi_output_update(name='OBS-PRV', groups='', ...)
13:47:56.793: [distroav] NDI Output Updated. 'OBS-PRV'
13:47:56.793: [distroav] ndi_output_update(name='OBS-PRV', groups='', uses_video='true', uses_audio='false')
13:47:56.793: [distroav] -ndi_output_create(name='OBS-PRV', groups='', ...)
13:47:56.793: [distroav] preview_output_init: Successfully created NDI Preview Output 'OBS-PRV'
13:47:56.793: [distroav] +preview_output_start()
13:47:56.793: [distroav] preview_output_start: starting NDI preview output 'OBS-PRV'
13:47:56.793: [distroav] ndi_output_update(name='OBS-PRV', groups='', ...)
13:47:56.793: [distroav] NDI Output Updated. 'OBS-PRV'
13:47:56.793: [distroav] ndi_output_update(name='OBS-PRV', groups='', uses_video='true', uses_audio='false')
13:47:56.793: [distroav] +ndi_output_start(name='OBS-PRV', groups='', ...)
13:47:56.794: [distroav] +on_preview_output_started()
13:47:56.794: [distroav] -on_preview_output_started()
13:47:56.794: [distroav] 'OBS-PRV' ndi_output_start: ndi output started
13:47:56.794: [distroav] -ndi_output_start(name='OBS-PRV', groups=''...)
13:47:56.794: [distroav] preview_output_start: successfully started NDI preview output 'OBS-PRV'
13:47:56.794: [distroav] -preview_output_start()
13:47:56.794: [distroav] -preview_output_init()
13:47:56.855: [distroav] ndi_output_rawaudio('OBS-PGM'): growing audio_conv_buffer from 0 to 8192 bytes
13:47:56.855: [distroav] ndi_output_rawaudio('OBS-PGM'): allocating 8192 bytes```
|
This is happening because we call ndi_output_update within the ndi_output_create callback. I suspect it is not needed. The reason main output doesn't do the same thing is because main output uses obs_output_create instead of obs_register_output. obs_register_output is used for both preview and filter output of NDI. |
|
Regarding that last bit of the "Double Preview" start, I think we should look at the preview generating code. Not something i could find / understand right away. I have logged an issue #1250 for this purpose and deal with it as part of future improvement. |
|
Summary of changes seen: Change back-quote to single-quote, change LOG_INFO to LOG_DEBUG, and override LOG_LEVEL sent to OBS when --distroav-debug set. These work fine. |
|
True the error log from the update system have not been fully re worked. Will look at them to be more streamlined, but this might be in a different PR more targeted to the update process. |
BitRate27
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we will tackle the update code later, this is fine for now.
This is a Work In Progress.
Goal is to have less but more meaningful log message for the general users and access to finer log in debug for diagnosis & bug reports.
Address mostly : #1193
Set as a Draft PR for now as I need help figuring out why the debug level does not seems to output the desired outcome in the logs.
Settin --distroav-verbose // --distroav-debug do not seems to do anything.