Skip to content

Commit

Permalink
Tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewi committed Dec 4, 2024
1 parent b459387 commit 2c346b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package agent

import (
"context"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"io"
"strings"
"sync"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

"github.com/jlewi/foyle/app/pkg/runme/ulid"

"github.com/jlewi/foyle/protos/go/foyle/v1alpha1/v1alpha1connect"
Expand Down
5 changes: 3 additions & 2 deletions app/pkg/analyze/session_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"database/sql"
_ "embed"
"fmt"
"github.com/go-logr/zapr"
"go.uber.org/zap"
"os"
"path/filepath"

"github.com/go-logr/zapr"
"go.uber.org/zap"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

Expand Down
2 changes: 1 addition & 1 deletion app/pkg/application/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (a *App) createJSONCoreLogger(paths []string) (zapcore.Core, error) {
// why we don't allow it to be customized to match the field expected by a logging backend like Datadog
// or Cloud Logging
c.FunctionKey = "function"

jsonEncoder := zapcore.NewJSONEncoder(c)

fmt.Fprintf(os.Stdout, "Writing JSON logs to %s\n", paths)
Expand Down

0 comments on commit 2c346b6

Please sign in to comment.