Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Fixed Logging Panics #6

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

joe-elliott
Copy link
Contributor

The otelcol-builder panics when it hits the fixed log lines with this error:

2021-02-10T10:46:30.641-0500	DPANIC	[email protected]/zapr.go:133	odd number of arguments passed as key-value pairs for logging	{"ignored key": "invalid gomod specification for module, module: \"\""}
github.com/go-logr/zapr.handleFields
	github.com/go-logr/[email protected]/zapr.go:100
github.com/go-logr/zapr.(*zapLogger).Error
	github.com/go-logr/[email protected]/zapr.go:133
github.com/open-telemetry/opentelemetry-collector-builder/cmd.Execute.func1
	github.com/open-telemetry/opentelemetry-collector-builder/cmd/root.go:50
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/[email protected]/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/[email protected]/command.go:950
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/[email protected]/command.go:887
github.com/open-telemetry/opentelemetry-collector-builder/cmd.Execute
	github.com/open-telemetry/opentelemetry-collector-builder/cmd/root.go:76
main.main
	github.com/open-telemetry/opentelemetry-collector-builder/main.go:22
runtime.main
	runtime/proc.go:203
panic: odd number of arguments passed as key-value pairs for logging

Signed-off-by: Joe Elliott <[email protected]>
@joe-elliott joe-elliott requested review from a team February 10, 2021 15:51
Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jpkrohling jpkrohling merged commit fdf9416 into open-telemetry:main Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants