diff --git a/internal/cmd/base/profiling_on.go b/internal/cmd/base/profiling_on.go index c07e4de37..8a39367b5 100644 --- a/internal/cmd/base/profiling_on.go +++ b/internal/cmd/base/profiling_on.go @@ -14,7 +14,7 @@ func StartMemProfiler(ctx context.Context) { const op = "base.StartMemProfiler" profileDir := filepath.Join(os.TempDir(), "boundaryprof") if err := os.MkdirAll(profileDir, 0o700); err != nil { - event.WriteError(ctx, op, err,"could not create profile directory") + event.WriteError(ctx, op, err, "could not create profile directory") return } diff --git a/internal/observability/event/hclog_formatter_node.go b/internal/observability/event/hclog_formatter_node.go index 847405861..eeccf0cc1 100644 --- a/internal/observability/event/hclog_formatter_node.go +++ b/internal/observability/event/hclog_formatter_node.go @@ -62,7 +62,6 @@ func newHclogFormatterFilter(jsonFormat bool, opt ...Option) (*hclogFormatterFil n.predicate = newPredicate(n.allow, n.deny) return &n, nil - } // Reopen is a no op diff --git a/internal/observability/event/hclog_formatter_node_test.go b/internal/observability/event/hclog_formatter_node_test.go index ff86f3a55..7834e0fd6 100644 --- a/internal/observability/event/hclog_formatter_node_test.go +++ b/internal/observability/event/hclog_formatter_node_test.go @@ -145,7 +145,8 @@ func TestHclogFormatter_Process(t *testing.T) { "\"Error\":\"invalid parameter\"", "\"Id\":\"1\"", "\"Version\":\"v0.1\"", - "\"Op\":\"text\""}, + "\"Op\":\"text\"", + }, }, { name: "err-text-with-optional", @@ -243,7 +244,6 @@ func TestHclogFormatter_Process(t *testing.T) { for _, txt := range tt.want { assert.Contains(string(b), txt) } - }) } }