Skip to content

Commit

Permalink
Add SetDebugMode function in config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc committed Jul 18, 2024
1 parent b28b9e1 commit b4e29e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/beyla/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ func (c *Config) Enabled(feature Feature) bool {
return false
}

// SetDebugMode sets the debug mode for Beyla
func (c *Config) SetDebugMode() {
c.Printer = true
c.LogLevel = "DEBUG"
c.EBPF.BpfDebug = true
}

// LoadConfig overrides configuration in the following order (from less to most priority)
// 1 - Default configuration (defaultConfig variable)
// 2 - Contents of the provided file reader (nillable)
Expand Down

0 comments on commit b4e29e4

Please sign in to comment.