Option log_level has 'choices' but has type 'string', use 'select' instead

I get this warning:

WARNING Packagers: option log_level has 'choices' but has type 'string', use 'select' instead to remove this warning.

e.g.: YunoRunner for CI

But the manifest.toml has this:

    [install.log_level] # __LOG_LEVEL__
    ask.en = "Logging level"
    type = "select"
    choices = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
    default = "WARNING"

see: django-fmd_ynh/manifest.toml at 0b4dbfb96a44c1591c1de2b5efef90e8f5a37773 · YunoHost-Apps/django-fmd_ynh · GitHub

The type is select and not string. So i didn’t understand the warning.

Try ojs_ynh/manifest.toml at b9c893ce404adcb214a2af9aedad54f4a88b88ca · YunoHost-Apps/ojs_ynh · GitHub

1 Like

Thanks, seems that this works in my case:

    [install.log_level] # __LOG_LEVEL__
    ask.en = "Logging level"
    type = "select"
    choices.debug = "DEBUG"
    choices.info = "INFO"
    choices.warning = "WARNING"
    choices.error = "ERROR"
    choices.critical = "CRITICAL"
    default = "warning"
1 Like