Adding `server.ShouldProcessCommon` to ignore common errors and thus
their error emails.
---
cmd/api/main.go | 1 +
cmd/links/main.go | 1 +
cmd/list/main.go | 1 +
cmd/short/main.go | 1 +
go.mod | 12 ++++++------
go.sum | 24 ++++++++++++------------
6 files changed, 22 insertions(+), 18 deletions(-)
diff --git a/cmd/api/main.go b/cmd/api/main.go
index ab6ee51..bfec080 100644
--- a/cmd/api/main.go
+++ b/cmd/api/main.go
@@ -127,6 +127,7 @@ func run() error {
WithStorage(storesvc).
DefaultMiddlewareWithConfig(mwConf).
SetWorkerPoolFunc(cmd.GetWorkerPoolCount).
+ SetShouldProcessErrorFunc(server.ShouldProcessCommon).
WithQueues(eq, wq).
WithMiddleware(
database.DBIMiddleware(db),
diff --git a/cmd/links/main.go b/cmd/links/main.go
index 8defffc..282c8a1 100644
--- a/cmd/links/main.go
+++ b/cmd/links/main.go
@@ -223,6 +223,7 @@ func run() error {
WithStorage(storesvc).
DefaultMiddlewareWithConfig(mwConf).
SetWorkerPoolFunc(cmd.GetWorkerPoolCount).
+ SetShouldProcessErrorFunc(server.ShouldProcessCommon).
WithQueues(eq, wq, wqi, imq).
WithMiddleware(
database.DBIMiddleware(db),
diff --git a/cmd/list/main.go b/cmd/list/main.go
index 56f535e..942ec79 100644
--- a/cmd/list/main.go
+++ b/cmd/list/main.go
@@ -89,6 +89,7 @@ func run() error {
WithAppInfo("links-list", Version).
DefaultMiddlewareWithConfig(mwConf).
SetWorkerPoolFunc(cmd.GetWorkerPoolCount).
+ SetShouldProcessErrorFunc(server.ShouldProcessCommon).
WithQueues(eq, wq).
WithMiddleware(
database.DBIMiddleware(db),
diff --git a/cmd/short/main.go b/cmd/short/main.go
index 01bcfb7..532e3b8 100644
--- a/cmd/short/main.go
+++ b/cmd/short/main.go
@@ -87,6 +87,7 @@ func run() error {
WithAppInfo("links-short", Version).
DefaultMiddlewareWithConfig(mwConf).
SetWorkerPoolFunc(cmd.GetWorkerPoolCount).
+ SetShouldProcessErrorFunc(server.ShouldProcessCommon).
WithQueues(eq, wq).
WithMiddleware(
database.DBIMiddleware(db),
diff --git a/go.mod b/go.mod
index fec5c14..eccd933 100644
--- a/go.mod
+++ b/go.mod
@@ -31,12 +31,12 @@ require (
golang.org/x/text v0.27.0
golang.org/x/time v0.8.0
hg.code.netlandish.com/~netlandish/sendygo v0.0.0-20230124192435-bbf347776232
- netlandish.com/x/gobwebs v0.1.12
- netlandish.com/x/gobwebs-auditlog v0.2.9
- netlandish.com/x/gobwebs-formguard v0.2.10
- netlandish.com/x/gobwebs-graphql v0.2.10
- netlandish.com/x/gobwebs-oauth2 v0.2.10
- netlandish.com/x/gobwebs-ses-feedback v0.2.10
+ netlandish.com/x/gobwebs v0.1.13
+ netlandish.com/x/gobwebs-auditlog v0.2.10
+ netlandish.com/x/gobwebs-formguard v0.2.11
+ netlandish.com/x/gobwebs-graphql v0.2.11
+ netlandish.com/x/gobwebs-oauth2 v0.2.11
+ netlandish.com/x/gobwebs-ses-feedback v0.2.11
petersanchez.com/x/carrier v0.2.3
petersanchez.com/x/carrier/ses v0.0.0-20250114214955-7f5d9b835a85
petersanchez.com/x/carrier/smtp v0.0.0-20250114214955-7f5d9b835a85
diff --git a/go.sum b/go.sum
index 59d2840..c73d67e 100644
--- a/go.sum
+++ b/go.sum
@@ -2578,18 +2578,18 @@ modernc.org/z v1.0.1-0.20210308123920-1f282aa71362/go.mod h1:8/SRk5C/HgiQWCgXdfp
modernc.org/z v1.0.1/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA=
modernc.org/z v1.2.20/go.mod h1:zU9FiF4PbHdOTUxw+IF8j7ArBMRPsHgq10uVPt6xTzo=
modernc.org/zappy v1.0.0/go.mod h1:hHe+oGahLVII/aTTyWK/b53VDHMAGCBYYeZ9sn83HC4=
-netlandish.com/x/gobwebs v0.1.12 h1:T+XjmKZ7Cayn8jE/XXj9DoOcQprareFvQQhzb59IR8w=
-netlandish.com/x/gobwebs v0.1.12/go.mod h1:RAf0VNiujzXen/pu0k6yyhvPWMgCY9tKD7ftXrkT53E=
-netlandish.com/x/gobwebs-auditlog v0.2.9 h1:z6UZJYsuQSzKorbDDzwDQrd9kTfh5Cm4xlMQq30MTEw=
-netlandish.com/x/gobwebs-auditlog v0.2.9/go.mod h1:jkiFRtJ3C4rUlJslwNTk7cV+76mGSv5szGxi6AOOyA4=
-netlandish.com/x/gobwebs-formguard v0.2.10 h1:cZv/r6n6EEWsJ71uTjxjwy/QEnp+JQR+85IbpntiyAM=
-netlandish.com/x/gobwebs-formguard v0.2.10/go.mod h1:FrJd8CjbxPakUIs0QGsmHUcobpKlCGBv1NLIjHTFkrg=
-netlandish.com/x/gobwebs-graphql v0.2.10 h1:ZSH5KIoknWGGeIDufDg9Og9O5Qz/t4aPLD4nV31+lZE=
-netlandish.com/x/gobwebs-graphql v0.2.10/go.mod h1:9SpuBA+3pJsCPAjoGAdzmG3zjja688cBanIeQOfM4b4=
-netlandish.com/x/gobwebs-oauth2 v0.2.10 h1:NJ5ubWW7Tgm2MXt9JUuClAuCHklrD8zo1DUO0tDRl5k=
-netlandish.com/x/gobwebs-oauth2 v0.2.10/go.mod h1:/XCYB/uCOCRKhwyO9Teq7WHg0q+rxFUhvek0BP6+ypg=
-netlandish.com/x/gobwebs-ses-feedback v0.2.10 h1:IuRn5duBdW8GUQXnTmDfZmp5Eirq3joZp1Z0GGWLCWE=
-netlandish.com/x/gobwebs-ses-feedback v0.2.10/go.mod h1:V0zZUfOxlZ/gosL597eIlSJWp3/qwN19uFWKCdF1SuE=
+netlandish.com/x/gobwebs v0.1.13 h1:wdw2Ufmfmjb4cYCdCNbbRflWWF1Sod2IzTbE//WdGf8=
+netlandish.com/x/gobwebs v0.1.13/go.mod h1:RAf0VNiujzXen/pu0k6yyhvPWMgCY9tKD7ftXrkT53E=
+netlandish.com/x/gobwebs-auditlog v0.2.10 h1:dzdY58hdS8nD4J5uir9PzavTohWxxWdRb4qyV1ebeTA=
+netlandish.com/x/gobwebs-auditlog v0.2.10/go.mod h1:TIiP98U0Mlgtn9ivjbDDg1X+Wnt8zq0hC3Ce7exqtlY=
+netlandish.com/x/gobwebs-formguard v0.2.11 h1:/Vc8e1+Wpdd7y8A0wm954w+QOKuOvU6MXwFKXKRARpE=
+netlandish.com/x/gobwebs-formguard v0.2.11/go.mod h1:b8b06b14PJMkeq0gjpwAm8qXDVnvYhT5eulkljBGhlQ=
+netlandish.com/x/gobwebs-graphql v0.2.11 h1:Q0qAco2JfXzj+qYqUTXdf2uNPqqj66mYwjK4GwuzIkQ=
+netlandish.com/x/gobwebs-graphql v0.2.11/go.mod h1:tRfppt6MobMyfgJOhZ2J6Em20X7tGKKTCETeOx/nVvk=
+netlandish.com/x/gobwebs-oauth2 v0.2.11 h1:mI17IoQs8iwLNRtC1lysvMkGShVLNGXyzV96P3eT4n0=
+netlandish.com/x/gobwebs-oauth2 v0.2.11/go.mod h1:7h2MfFMo9EJMLXyCNXAinLEOV9omU0uAT4al7+HcWm4=
+netlandish.com/x/gobwebs-ses-feedback v0.2.11 h1:STbn+kYib8JhFUq8ZVTYoV973ZTmw5NOXObckFqHoI4=
+netlandish.com/x/gobwebs-ses-feedback v0.2.11/go.mod h1:O6lzoNUtgsWSDrKcRodqwKjkXGJJkl9lMPqWlvo6u9Y=
petersanchez.com/x/carrier v0.2.3 h1:6ScWG2HVFqeqafQp2D9kChNdXYkou4rduzppc3SDYMg=
petersanchez.com/x/carrier v0.2.3/go.mod h1:GLiDI9OThDmruufk/VHlR6Ihvq/hIJQyA5beU6AFNYk=
petersanchez.com/x/carrier/ses v0.0.0-20250114214955-7f5d9b835a85 h1:yy81/rrGdI+YWuTvv7JPvVnY104/g10vnloBnKxVAHk=
--
2.49.1