INNER CODE UNIT · Go
cfg
deepflowio/deepflow · server/cmd/server/main.go:76
cfg := loadConfig(*configPath)
logger.EnableStdoutLog()
logger.EnableFileLog(cfg.LogFile)
logLevel, _ := logging.LogLevel(cfg.LogLevel)
logging.SetLevel(logLevel, "")
log.Infof("deepflow-server config: %+v", *cfg)
debug.SetIpAndPort(ingesterctl.DEBUG_LISTEN_IP, ingesterctl.DEBUG_LISTEN_PORT)
debug.NewLogLevelControl()
profiler := profiler.NewProfiler(PROFILER_PORT)
if cfg.Profiler {
runtime.SetMutexProfileFraction(1)
runtime.SetBlockProfileRate(1)
profiler.Start()
}
if cfg.MaxCPUs > 0 {