From 2b1c11c954172a24a879d95beb832caf8d1bc659 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Wed, 12 Jun 2024 14:24:19 -0600 Subject: [PATCH] Adding IP address to error email --- server/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index 9fa5844..f40b968 100644 --- a/server/server.go +++ b/server/server.go @@ -228,13 +228,15 @@ With these variables: By the user: %s +With Remote IP: %s + Attempted to collect final caller: %s:%d The following stack trace was produced: -%s`, err, c.Request().URL.Path, c.Path(), c.QueryParams(), userStr, file, line, stack) +%s`, err, c.Request().URL.Path, c.Path(), c.QueryParams(), userStr, c.RealIP(), file, line, stack) msg := carrier.NewMessage(). SetTo(s.Config.AdminEmail). -- 2.45.2