Fix logging

This commit is contained in:
Ingo Oppermann
2023-05-11 16:12:41 +02:00
parent f566dee9f2
commit e4ca661b25
8 changed files with 142 additions and 94 deletions

View File

@@ -4,6 +4,7 @@ import (
"io"
golog "log"
"os"
"strings"
"github.com/datarhei/core/v16/log"
@@ -44,6 +45,10 @@ func (l *hclogger) Log(level hclog.Level, msg string, args ...interface{}) {
logger = logger.Error()
}
if len(msg) != 0 {
msg = strings.ToUpper(msg[:1]) + msg[1:]
}
logger.Log(msg)
}