From a76aeb03e86535ba3a35d65245e5b0ddbf1a12d3 Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 22 Oct 2024 10:02:28 +0200 Subject: [PATCH] Add example on how to verify Winston updates --- docs/dependency-updates.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/dependency-updates.md b/docs/dependency-updates.md index ef265acac5..59daf0c2c9 100644 --- a/docs/dependency-updates.md +++ b/docs/dependency-updates.md @@ -306,7 +306,15 @@ for instructions on running the Pub/Sub emulator locally. Winston is a logging library that provides structured logging in GCP. -Look for any `logger.*` statement in `./src` and ensure that log messages are being written as [structured logs](https://cloud.google.com/logging/docs/structured-logging). +Look for any `logger.*` statement in `./src` and ensure that log messages are +being written as [structured +logs](https://cloud.google.com/logging/docs/structured-logging). + +For example, if you are logged in with a non-Plus user, then visit +http://localhost:6060/user/dashboard/fix/data-broker-profiles/welcome-to-plus, +you should see the following in the server-side logs: + + {"level":"error","message":"user_not_subscribed","page":"welcome-to-premium"} ### `@sentry/*`