aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-07-29 16:16:17 -0400
committerXe Iaso <me@xeiaso.net>2023-07-29 16:18:31 -0400
commitef73e8be518293efddee401a7e0a01e72185605a (patch)
treef40797b6147f7b1e18f66e5c9ccd09d2881f7dd2 /internal
parentb17f20f3e30c4a39033d210f2d86ffd005a9ea76 (diff)
downloadx-ef73e8be518293efddee401a7e0a01e72185605a.tar.xz
x-ef73e8be518293efddee401a7e0a01e72185605a.zip
refactor ln to slog in a few places
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'internal')
-rw-r--r--internal/confyg/flagconfyg/flagconfyg.go4
-rw-r--r--internal/internal.go3
2 files changed, 3 insertions, 4 deletions
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)