From a6f04b9104c235542b2b203939fb261b2e5d63b0 Mon Sep 17 00:00:00 2001 From: eparker-tulip Date: Thu, 3 Oct 2024 11:42:23 -0500 Subject: [PATCH 1/3] testing sentry --- lib/log/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/log/main.go b/lib/log/main.go index 6a11427..6ed4fa9 100644 --- a/lib/log/main.go +++ b/lib/log/main.go @@ -94,6 +94,8 @@ func sentryInit(log *zap.Logger) *zap.Logger { }, } + defaultSentryClient = sentry.CurrentHub().Client() + core, err := zapsentry.NewCore(cfg, zapsentry.NewSentryClientFromClient(defaultSentryClient)) if err != nil { @@ -105,6 +107,7 @@ func sentryInit(log *zap.Logger) *zap.Logger { log = zapsentry.AttachCoreToLogger(core, log).With(zapsentry.NewScope()) log.Info("Sentry wrapper configured") + log.Error("Sentry error test") return log } From d018c10fb1eaea8bbf8004fbfcf5beb1e80d3735 Mon Sep 17 00:00:00 2001 From: eparker-tulip Date: Thu, 3 Oct 2024 11:42:45 -0500 Subject: [PATCH 2/3] bump version --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 5d113c1..1a7244d 100644 --- a/default.nix +++ b/default.nix @@ -2,7 +2,7 @@ buildGoModule { pname = "oplogtoredis"; - version = "3.7.1"; + version = "3.7.2"; src = builtins.path { path = ./.; }; postInstall = '' From 03507532565b37291ee5161973d7deccc84ba4cc Mon Sep 17 00:00:00 2001 From: eparker-tulip Date: Thu, 3 Oct 2024 11:52:00 -0500 Subject: [PATCH 3/3] removed test error --- lib/log/main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/log/main.go b/lib/log/main.go index 6ed4fa9..a330081 100644 --- a/lib/log/main.go +++ b/lib/log/main.go @@ -107,7 +107,6 @@ func sentryInit(log *zap.Logger) *zap.Logger { log = zapsentry.AttachCoreToLogger(core, log).With(zapsentry.NewScope()) log.Info("Sentry wrapper configured") - log.Error("Sentry error test") return log }