Skip to content

Commit 7466757

Browse files
authored
chore: move daemon start log to debug (#1620)
## What? Moves daemon starting log to internal `loglevel` ## Why? It is an unneeded log, and it will likely close #1448 Closes #1448 Signed-off-by: drew <me@andrinoff.com>
1 parent 91e7c4d commit 7466757

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

daemonclient/service.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/floatpane/matcha/config"
1515
"github.com/floatpane/matcha/daemonrpc"
1616
"github.com/floatpane/matcha/fetcher"
17+
"github.com/floatpane/matcha/internal/loglevel"
1718
"github.com/floatpane/matcha/sender"
1819
)
1920

@@ -55,17 +56,17 @@ func NewService(cfg *config.Config) Service {
5556
}
5657

5758
// Daemon not running — auto-start it.
58-
log.Println("service: daemon not running, auto-starting")
59+
loglevel.Debugf("service: daemon not running, auto-starting")
5960
if err := autoStartDaemon(); err != nil {
60-
log.Printf("service: auto-start failed: %v, using direct mode", err)
61+
loglevel.Debugf("service: auto-start failed: %v, using direct mode", err)
6162
return newDirectService(cfg)
6263
}
6364

6465
// Wait briefly for daemon to become ready, then connect.
6566
for i := 0; i < 20; i++ {
6667
time.Sleep(100 * time.Millisecond)
6768
if svc := tryConnect(); svc != nil {
68-
log.Println("service: connected to auto-started daemon")
69+
loglevel.Debugf("service: connected to auto-started daemon")
6970
return svc
7071
}
7172
}

0 commit comments

Comments
 (0)