Skip to content

Commit

Permalink
↪️ move package to logger/
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
  • Loading branch information
afiune committed Nov 21, 2024
1 parent d7d6a7c commit d0dc2e8
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func convertToFields(keysAndValues ...interface{}) map[string]interface{} {
for i := 0; i < len(keysAndValues); i += 2 {
if i+1 < len(keysAndValues) {
keyString, ok := keysAndValues[i].(string)
if ok { // safelty first, eventhough we always expect a string
if ok { // safety first, eventhough we always expect a string
fields[keyString] = keysAndValues[i+1]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"bytes"
"testing"

subject "go.mondoo.com/cnquery/v11/providers-sdk/v1/util/zerologadapter"
subject "go.mondoo.com/cnquery/v11/logger/zerologadapter"

"github.com/rs/zerolog"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion providers/aws/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"github.com/hashicorp/go-retryablehttp"
"github.com/rs/zerolog/log"
"github.com/spf13/afero"
"go.mondoo.com/cnquery/v11/logger/zerologadapter"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/util/zerologadapter"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/vault"
"go.mondoo.com/cnquery/v11/providers/os/connection/shared"
)
Expand Down
2 changes: 1 addition & 1 deletion providers/github/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"github.com/hashicorp/go-retryablehttp"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"go.mondoo.com/cnquery/v11/logger/zerologadapter"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/util/zerologadapter"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/vault"
"golang.org/x/oauth2"
)
Expand Down
2 changes: 1 addition & 1 deletion providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"github.com/spf13/afero"
"github.com/ulikunitz/xz"
"go.mondoo.com/cnquery/v11/cli/config"
"go.mondoo.com/cnquery/v11/logger/zerologadapter"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/resources"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/util/zerologadapter"
"go.mondoo.com/cnquery/v11/providers/core/resources/versions/semver"
"golang.org/x/exp/slices"
)
Expand Down
2 changes: 1 addition & 1 deletion providers/slack/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/hashicorp/go-retryablehttp"
"github.com/rs/zerolog/log"
"github.com/slack-go/slack"
"go.mondoo.com/cnquery/v11/logger/zerologadapter"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/util/zerologadapter"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/vault"
)

Expand Down

0 comments on commit d0dc2e8

Please sign in to comment.