mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-25 07:11:03 +00:00
20a5b20b59
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
20 lines
235 B
Go
20 lines
235 B
Go
package p2p
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
var logLevel = strings.ToLower(os.Getenv("LOCALAI_P2P_LOGLEVEL"))
|
|
|
|
const (
|
|
logLevelDebug = "debug"
|
|
logLevelInfo = "info"
|
|
)
|
|
|
|
func init() {
|
|
if logLevel == "" {
|
|
logLevel = logLevelInfo
|
|
}
|
|
}
|