Replaced all kitlog.Logger instances with the intermediate *logging.Logger (#40425)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #40054 # Checklist for submitter - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. - Changes included in previous PR ## Testing - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Consolidated and standardized internal logging infrastructure across the application by adopting a unified logging package throughout the codebase, replacing previous external logging dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -11,14 +11,14 @@ import (
|
||||
"github.com/fleetdm/fleet/v4/ee/server/service/hostidentity/types"
|
||||
"github.com/fleetdm/fleet/v4/pkg/fleethttpsig"
|
||||
"github.com/fleetdm/fleet/v4/server/fleet"
|
||||
"github.com/go-kit/log"
|
||||
"github.com/fleetdm/fleet/v4/server/platform/logging"
|
||||
"github.com/go-kit/log/level"
|
||||
"github.com/remitly-oss/httpsig-go"
|
||||
)
|
||||
|
||||
type HTTPSig struct {
|
||||
ds fleet.Datastore
|
||||
logger log.Logger
|
||||
logger *logging.Logger
|
||||
}
|
||||
|
||||
type KeySpecer struct {
|
||||
@@ -33,7 +33,7 @@ func (k KeySpecer) KeySpec() (httpsig.KeySpec, error) {
|
||||
// _ ensures that KeySpecer implements the httpsig.KeySpecer interface.
|
||||
var _ httpsig.KeySpecer = KeySpecer{}
|
||||
|
||||
func NewHTTPSig(ds fleet.Datastore, logger log.Logger) *HTTPSig {
|
||||
func NewHTTPSig(ds fleet.Datastore, logger *logging.Logger) *HTTPSig {
|
||||
return &HTTPSig{
|
||||
ds: ds,
|
||||
logger: logger,
|
||||
|
||||
Reference in New Issue
Block a user