Make etw package internal

This commit is contained in:
Kevin Parsons
2018-12-19 01:52:15 -08:00
parent 32544c5852
commit 824a366a22
8 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"reflect"
"github.com/Microsoft/go-winio/pkg/etw"
"github.com/Microsoft/go-winio/internal/etw"
"github.com/sirupsen/logrus"
"golang.org/x/sys/windows"
@@ -45,7 +45,7 @@ func (h *Hook) Levels() []logrus.Level {
// Fire receives each Logrus entry as it is logged, and logs it to ETW.
func (h *Hook) Fire(e *logrus.Entry) error {
if !h.provider.IsEnabledForLevel(etw.Level(e.Level)) {
return
return nil
}
descriptor := etw.NewEventDescriptor()