diff --git a/go.mod b/go.mod index 1858d113..0e1c7fb9 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/CubicrootXYZ/matrix-reminder-and-calendar-bot go 1.23 require ( - github.com/CubicrootXYZ/gologger v0.4.0 github.com/CubicrootXYZ/gonaturalduration v0.5.0 github.com/CubicrootXYZ/gormlogger v0.0.0-20211030135540-f090b6c3590d github.com/arran4/golang-ical v0.3.1 diff --git a/go.sum b/go.sum index 9bf4f8e1..b8725cf0 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,6 @@ filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4 github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0= github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= -github.com/CubicrootXYZ/gologger v0.4.0 h1:P/QC3+KYG/9OLL7mv2lO5G6vo+gOCQQddHq3mib0qK8= -github.com/CubicrootXYZ/gologger v0.4.0/go.mod h1:ToO0WG8e9pFFg5JbwmT99PEJYrl0W6XlwMJ8Pzyf7Yc= github.com/CubicrootXYZ/gonaturalduration v0.5.0 h1:6qVQ8DuZKiyt1WhIyGmW7adbaYJ2CkH/iSHeGH/WhXI= github.com/CubicrootXYZ/gonaturalduration v0.5.0/go.mod h1:pNCNvLsNlxgUR3y9DNPVSmdF1D9BZTfaM2yZwbEjCRA= github.com/CubicrootXYZ/gormlogger v0.0.0-20211030135540-f090b6c3590d h1:aeRXn89hSJJF9Ut/5FmkVwbgKW6VgnvaNseoB+uC+Ro= diff --git a/internal/connectors/ical/database/service_test.go b/internal/connectors/ical/database/service_test.go index 0f2827d6..15c4b6b3 100644 --- a/internal/connectors/ical/database/service_test.go +++ b/internal/connectors/ical/database/service_test.go @@ -4,13 +4,11 @@ import ( "os" "testing" - "github.com/CubicrootXYZ/gologger" "github.com/CubicrootXYZ/matrix-reminder-and-calendar-bot/internal/connectors/ical/database" "gorm.io/driver/mysql" "gorm.io/gorm" ) -var logger gologger.Logger var service database.Service var gormDB *gorm.DB @@ -41,12 +39,7 @@ func getService(gormDB *gorm.DB) database.Service { return service } -func getLogger() gologger.Logger { - return gologger.New(gologger.LogLevelDebug, 0) -} - func TestMain(m *testing.M) { - logger = getLogger() gormDB = getGormDB() service = getService(gormDB) diff --git a/internal/connectors/matrix/database/service_test.go b/internal/connectors/matrix/database/service_test.go index b9f06719..b12721b9 100644 --- a/internal/connectors/matrix/database/service_test.go +++ b/internal/connectors/matrix/database/service_test.go @@ -4,13 +4,11 @@ import ( "os" "testing" - "github.com/CubicrootXYZ/gologger" "github.com/CubicrootXYZ/matrix-reminder-and-calendar-bot/internal/connectors/matrix/database" "gorm.io/driver/mysql" "gorm.io/gorm" ) -var logger gologger.Logger var service database.Service var gormDB *gorm.DB @@ -41,12 +39,7 @@ func getService(gormDB *gorm.DB) database.Service { return service } -func getLogger() gologger.Logger { - return gologger.New(gologger.LogLevelDebug, 0) -} - func TestMain(m *testing.M) { - logger = getLogger() gormDB = getGormDB() service = getService(gormDB)