debug

package
v27.0.0-rc.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OTELErrorHandler otel.ErrorHandler = otel.ErrorHandlerFunc(func(err error) {
	logrus.WithError(err).Debug("otel error")
})

OTELErrorHandler is an error handler for OTEL that uses the CLI debug package to log messages when an error occurs.

The default is to log to the debug level which is only enabled when debugging is enabled.

Functions

func Disable

func Disable()

Disable sets the DEBUG env var to false and makes the logger to log at info level.

func Enable

func Enable()

Enable sets the DEBUG env var to true and makes the logger to log at debug level.

func IsEnabled

func IsEnabled() bool

IsEnabled checks whether the debug flag is set or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL