Skip to content

Commit 4422d5d

Browse files
committed
Disable XGB logging
1 parent 97b97a9 commit 4422d5d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

backend/logging/logging.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
package logging
22

33
import (
4+
"io"
5+
"log"
46
"log/slog"
57
"os"
68
"time"
79

10+
"github.com/jezek/xgb"
811
"github.com/lmittmann/tint"
912
slogmulti "github.com/samber/slog-multi"
1013
"github.com/spf13/viper"
@@ -14,6 +17,8 @@ import (
1417
)
1518

1619
func Init() {
20+
xgb.Logger = log.New(io.Discard, "", 0)
21+
1722
handlers := make([]slog.Handler, 0)
1823

1924
if _, err := os.Stdout.Stat(); err == nil {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/Masterminds/semver/v3 v3.4.0
99
github.com/andygrunwald/vdf v1.1.0
1010
github.com/godbus/dbus/v5 v5.1.0
11+
github.com/jezek/xgb v1.1.1
1112
github.com/kbinani/screenshot v0.0.0-20250624051815-089614a94018
1213
github.com/lmittmann/tint v1.1.2
1314
github.com/minio/selfupdate v0.6.0
@@ -54,7 +55,6 @@ require (
5455
github.com/hashicorp/go-multierror v1.1.1 // indirect
5556
github.com/jackc/puddle/v2 v2.2.2 // indirect
5657
github.com/jchv/go-winloader v0.0.0-20250406163304-c1995be93bd1 // indirect
57-
github.com/jezek/xgb v1.1.1 // indirect
5858
github.com/jlaffaye/ftp v0.2.0 // indirect
5959
github.com/kr/fs v0.1.0 // indirect
6060
github.com/labstack/echo/v4 v4.13.4 // indirect

0 commit comments

Comments
 (0)