martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
396 stars 21 forks source link

Set Default Log Level to Debug in Development Environment #239

Closed treagod closed 3 weeks ago

treagod commented 1 month ago

Description

Currently, Marten's default log level is set to Log::Severity::Info. While this is appropriate for production environments, it hides valuable debugging information (such as database queries) during development. This can lead to confusion and missed opportunities for optimization.

Proposed Solution

Update the config/settings/development.cr file in the default Marten project template to include the line: config.log_level = Log::Severity::Debug. This also helps the developers to learn about this setting, which might be missed when going over the documentation

This shall also be reflected in the documentation