Skip to content

Commit

Permalink
PR: remove NewHookFromETWProvider
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
  • Loading branch information
helsaawy committed Apr 26, 2022
1 parent c9495cf commit 808669c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/etwlogrus/hook.go
Expand Up @@ -37,14 +37,6 @@ func NewHook(providerName string, opts ...HookOpt) (*Hook, error) {
return NewHookFromOpts(opts...)
}

// NewHookFromProvider creates a new hook based on an existing ETW provider. The
// provider will not be closed when the hook is closed.
func NewHookFromProvider(provider *etw.Provider, opts ...HookOpt) (*Hook, error) {
opts = append(opts, WithExistingETWProvider(provider))

return NewHookFromOpts(opts...)
}

// NewHookFromOpts creates a new hook with the provided options.
// An error is returned if the hook does not have a valid provider.
func NewHookFromOpts(opts ...HookOpt) (*Hook, error) {
Expand Down

0 comments on commit 808669c

Please sign in to comment.