From ef73e8be518293efddee401a7e0a01e72185605a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 29 Jul 2023 16:16:17 -0400 Subject: refactor ln to slog in a few places Signed-off-by: Xe Iaso --- internal/confyg/flagconfyg/flagconfyg.go | 4 ++-- internal/internal.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'internal') diff --git a/internal/confyg/flagconfyg/flagconfyg.go b/internal/confyg/flagconfyg/flagconfyg.go index abf24a8..882853a 100644 --- a/internal/confyg/flagconfyg/flagconfyg.go +++ b/internal/confyg/flagconfyg/flagconfyg.go @@ -7,9 +7,9 @@ import ( "context" "flag" "io/ioutil" + "log" "strings" - "within.website/ln" "within.website/x/internal/confyg" ) @@ -22,7 +22,7 @@ func CmdParse(ctx context.Context, path string) { err = Parse(path, data, flag.CommandLine) if err != nil { - ln.Error(ctx, err) + log.Printf("can't parse %s: %v", path, err) return } } diff --git a/internal/internal.go b/internal/internal.go index 1f0a887..b9c1962 100644 --- a/internal/internal.go +++ b/internal/internal.go @@ -10,7 +10,6 @@ import ( "github.com/posener/complete" "go4.org/legal" - "within.website/ln/opname" "within.website/x/internal/confyg/flagconfyg" "within.website/x/internal/flagenv" "within.website/x/internal/manpage" @@ -58,7 +57,7 @@ func HandleStartup() { flag.Parse() flagenv.Parse() - ctx := opname.With(context.Background(), "internal.HandleStartup") + ctx := context.Background() if *config != "" { flagconfyg.CmdParse(ctx, *config) -- cgit v1.2.3