How can I change log level?
You can change log level by specifying the KNAPSACK_PRO_LOG_LEVEL
environment variable.
KNAPSACK_PRO_LOG_LEVEL=info bundle exec rake knapsack_pro:rspec
Available values are debug
(default), info
, warn
, error
and fatal
.
Recommended log levels you can use:
debug
is default log level and it is recommended to log details about requests to Knapsack Pro API. Thanks to that you can debug things or ensure everything works. For instance in user dashboard you can find tips referring to debug logs.info
level shows message like how to retry tests in development or info why something works this way or the other (for instance why tests were not executed on the CI node). You can useinfo
level when you really don't want to see all debug messages from default log level.