1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-18 11:12:10 +02:00

Use info log level when invalid one is provided & Add IMGPROXY_LOG_LEVEL to changelog

This commit is contained in:
DarthSim 2019-11-21 17:19:14 +06:00
parent e4f787e1f7
commit 3123d44692
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
# Changelog
## [Unreleased]
### Added
- `IMGPROXY_LOG_LEVEL` config.
## [2.7.0] - 2019-11-13
### Changed

2
log.go
View File

@ -24,7 +24,7 @@ func initLog() {
levelLogLevel, err := logrus.ParseLevel(logLevel)
if err != nil {
levelLogLevel = logrus.DebugLevel
levelLogLevel = logrus.InfoLevel
}
logrus.SetLevel(levelLogLevel)