From 245c79ed9ced4175412548d1fd828fd5c5aa7ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Fri, 26 Jul 2024 11:57:25 +0200 Subject: [PATCH] chore: upgrade `logrus` to 1.9.3 and its Graylog hook to 3.2.1 --- go.mod | 8 ++++---- ldap.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 04f0eef..acbc727 100644 --- a/go.mod +++ b/go.mod @@ -4,17 +4,17 @@ go 1.17 require ( github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d - github.com/gemnasium/logrus-graylog-hook/v3 v3.0.3 + github.com/gemnasium/logrus-graylog-hook/v3 v3.2.1 github.com/go-ldap/ldap/v3 v3.4.1 github.com/karrick/golf v1.4.0 - github.com/sirupsen/logrus v1.8.1 + github.com/sirupsen/logrus v1.9.3 gopkg.in/yaml.v2 v2.4.0 ) require ( github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect - github.com/pkg/errors v0.8.1 // indirect + github.com/pkg/errors v0.9.1 // indirect golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 // indirect - golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 // indirect + golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect ) diff --git a/ldap.go b/ldap.go index 961a7d6..86a9090 100644 --- a/ldap.go +++ b/ldap.go @@ -51,7 +51,7 @@ func (conn *tLdapConn) BaseDN() string { // Establish a connection to a LDAP server func getLdapServerConnection(cfg tLdapConfig, server int) *tLdapConn { if server < 0 || server >= len(cfg.Servers) { - logrus.Panic("Invalid server index %d", server) + logrus.Panicf("Invalid server index %d", server) } scfg := cfg.Servers[server]