GODT-1120 hotfix: use Info level in internal/app logs

This commit is contained in:
Jakub
2021-03-25 09:32:15 +01:00
parent cccadaee42
commit a205d8c046
5 changed files with 16 additions and 11 deletions

View File

@ -69,6 +69,10 @@ func Init(logsPath string) error {
return nil
}
// SetLevel will change the level of logging and in case of Debug or Trace
// level it will also prevent from writing to file. Setting level to Info or
// higher will not set writing to file again if it was previously cancelled by
// Debug or Trace.
func SetLevel(level string) {
if lvl, err := logrus.ParseLevel(level); err == nil {
logrus.SetLevel(lvl)