diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-04-20 16:13:31 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-04-20 16:13:31 +0200 |
commit | 737113ca1f4bc8ca30b61d9f7ab674e814375c35 (patch) | |
tree | e8b24310a68488c7a8efcfdf83b14179b05e311b /cmd | |
parent | ea26916be0ea693b6aefc46f3eeb62e44b8d7cb0 (diff) | |
download | dict-737113ca1f4bc8ca30b61d9f7ab674e814375c35.tar.gz dict-737113ca1f4bc8ca30b61d9f7ab674e814375c35.tar.bz2 dict-737113ca1f4bc8ca30b61d9f7ab674e814375c35.zip |
ref: Remove debugging logs
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/importer/importer.go | 2 | ||||
-rw-r--r-- | cmd/server/server.go | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/cmd/importer/importer.go b/cmd/importer/importer.go index 18a7a7b..47b046e 100644 --- a/cmd/importer/importer.go +++ b/cmd/importer/importer.go @@ -88,7 +88,7 @@ func Import(ctx context.Context, txtInput, sqliteOutput string) error { } } - fmt.Printf("Consolidating") + fmt.Printf("\nConsolidating...") err = db.Consolidade(ctx) if err != nil { return err diff --git a/cmd/server/server.go b/cmd/server/server.go index a0de547..76fc1e5 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -82,14 +82,12 @@ func handleConnection(conn net.Conn, db *db.DB) { q := strings.ReplaceAll(string(buf), "\n", "") - slog.Info("Query", "query", q) ws, err := db.SelectDict(context.Background(), q, 10) if err != nil { slog.Error("Error selecting", "error", err) return } - slog.Info("Count", "q", len(ws)) for _, w := range ws { fmt.Fprintf(conn, "%s\n%s\n\n", w.Word, w.Line) } |