aboutsummaryrefslogtreecommitdiff
path: root/git_hooks_handle_linux.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 18:37:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 18:37:55 +0800
commit4836dd8b0be10b461b93d711bb2cf78d186210d1 (patch)
tree3c84ec801c234c9bc1dfe1062e3a32710ae3e254 /git_hooks_handle_linux.go
parentSeparate code/README rendering and unsafe to their own packages (diff)
downloadforge-4836dd8b0be10b461b93d711bb2cf78d186210d1.tar.gz
forge-4836dd8b0be10b461b93d711bb2cf78d186210d1.tar.zst
forge-4836dd8b0be10b461b93d711bb2cf78d186210d1.zip
Use log/slog instead of clog
Diffstat (limited to '')
-rw-r--r--git_hooks_handle_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/git_hooks_handle_linux.go b/git_hooks_handle_linux.go
index 3c556c3..440bd46 100644
--- a/git_hooks_handle_linux.go
+++ b/git_hooks_handle_linux.go
@@ -12,6 +12,7 @@ import (
"errors"
"fmt"
"io"
+ "log/slog"
"net"
"os"
"path/filepath"
@@ -24,7 +25,6 @@ import (
"github.com/jackc/pgx/v5"
"go.lindenii.runxiyu.org/forge/misc"
"go.lindenii.runxiyu.org/lindenii-common/ansiec"
- "go.lindenii.runxiyu.org/lindenii-common/clog"
)
var (
@@ -253,7 +253,7 @@ func hooksHandler(conn net.Conn) {
select {
case ircSendBuffered <- "PRIVMSG #chat :New merge request at " + mergeRequestWebURL:
default:
- clog.Error("IRC SendQ exceeded")
+ slog.Error("IRC SendQ exceeded")
}
} else { // Existing contrib branch
var existingMRUser int