mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-19 04:37:53 +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
|
||
|
}
|
||
|
}
|