mirror of
https://github.com/datarhei/core.git
synced 2025-10-11 10:50:09 +08:00
Fix logging
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user