GitHub user dosubot[bot] added a comment to the discussion: Superset db upgrade is not triggering upgrade
<!-- Answer --> If you set LOG_LEVEL to DEBUG in superset_config.py, Superset will output much more detailed application logs—including debug messages from Flask, SQL Lab, dashboards, and internal components—both to stdout/stderr and any configured log files. This is useful for troubleshooting, but it can generate a lot of log data and may expose sensitive information, so it's best used temporarily or in non-production environments ([source](https://github.com/apache/superset/discussions/33944)). However, this setting does not affect the verbosity of Alembic migration logs during superset db upgrade. Migration logging is controlled separately by the alembic.ini file (and the alembic.env logger). If you want more detailed migration logs, you need to adjust the log level in superset/migrations/alembic.ini, not in superset_config.py ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/migrations/env.py#L34-L61)). In summary: LOG_LEVEL=DEBUG gives you more verbose application logs, but for migration logs, update alembic.ini. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/9661fce0-678c-4a4a-ad77-6c68a16b5bce?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/9661fce0-678c-4a4a-ad77-6c68a16b5bce?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/9661fce0-678c-4a4a-ad77-6c68a16b5bce?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/9661fce0-678c-4a4a-ad77-6c68a16b5bce?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/9661fce0-678c-4a4a-ad77-6c68a16b5bce?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/9661fce0-678c-4a4a-ad77-6c68a16b5bce?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/9661fce0-678c-4a4a-ad77-6c68a16b5bce?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=If%20you%20set%20LOG_LEVEL%20to%20DEBUG%20in%20superset_config.py%2C%20Superset%20will%20output%20much%20more%20detailed%20application%20logs%E2%80%94including%20debug%20messages%20from%20Flask%2C%20SQL%20Lab%2C%20dashboards%2C%20and%20internal%20components%E2%80%94both%20to%20stdout/stderr%20and%20any%20configured%20log%20files.%20This%20is%20useful%20for%20troubleshooting%2C%20but%20it%20can%20generate%20a%20lot%20of%20log%20data%20and%20may%20expose%20sensitive%20information%2C%20so%20it%27s%20best%20used%20temporarily%20or%20in%20non-production%20environments%C2%A0%28%5Bsource%5D%28https%3A//github.com/apache/superset/discussions/33944%29%29.%0A%0AHowever%2C%20this%20setting%20does%20not%20affect%20the%20verbosity%20of%20Alembic%20migration%20logs %20during%20superset%20db%20upgrade.%20Migration%20logging%20is%20controlled%20separately%20by%20the%20alembic.ini%20file%20%28and%20the%20alembic.env%20logger%29.%20If%20you%20want%20more%20detailed%20migration%20logs%2C%20you%20need%20to%20adjust%20the%20log%20level%20in%20superset/migrations/alembic.ini%2C%20not%20in%20superset_config.py%C2%A0%28%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/migrations/env.py%23L34-L61%29%29.%0A%0AIn%20summary%3A%20LOG_LEVEL%3DDEBUG%20gives%20you%20more%20verbose%20application%20logs%2C%20but%20for%20migration%20logs%2C%20update%20alembic.ini.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37261) GitHub link: https://github.com/apache/superset/discussions/37261#discussioncomment-15545179 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
