mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-21 13:37:51 +00:00
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
|
||
|
}
|
||
|
}
|