MCPcopy Create free account
hub / github.com/actiontech/dtle / SetLogLevel

Method SetLogLevel

driver/driver.go:873–881  ·  view source on GitHub ↗
(level string)

Source from the content-addressed store, hash-verified

871}
872
873func (d *Driver) SetLogLevel(level string) error {
874 logLevel := hclog.LevelFromString(level)
875 if logLevel == hclog.NoLevel {
876 return fmt.Errorf("log level should be TRACE, DEBUG or INFO, got %v", level)
877 }
878 d.logger.SetLevel(logLevel)
879
880 return nil
881}
882
883func (d *Driver) ResetDebugJob(job *string) string {
884 if job != nil {

Callers 2

setupLoggerMethod · 0.95
UpdateLogLevelV2Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected