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
get_log_level_name seems to try to load from QGIS3.ini which is undocumented and broken:
It uses get_log_level_key(target)
which uses setting_key("log_level", target.id)
which ends up prepending the plugin name to the key, and passes that to get_setting() without overriding the internal=True parameter
which ends up generating and requesting the key /PLUGINNAME//PLUGINNAME/log_level/foo_log_target.
Instead it should request /PLUGINNAME/log_level/foo_log_target
Fixed by generating the key as f"log_level/{target.id}" and skipping the get_log_level_key function completely:
get_log_level_name
seems to try to load fromQGIS3.ini
which is undocumented and broken:It uses
get_log_level_key(target)
which uses
setting_key("log_level", target.id)
which ends up prepending the plugin name to the key, and passes that to
get_setting()
without overriding theinternal=True
parameterwhich ends up generating and requesting the key
/PLUGINNAME//PLUGINNAME/log_level/foo_log_target
.Instead it should request
/PLUGINNAME/log_level/foo_log_target
Fixed by generating the key as
f"log_level/{target.id}"
and skipping theget_log_level_key
function completely:Not sure if this is a proper fix as this behaviour is not documented and I did not end up using or testing it any further.
The text was updated successfully, but these errors were encountered: