Skip to content

Commit 35b4a8f

Browse files
Update samples/Sentry.Samples.Google.Cloud.Functions/Function.cs
Co-authored-by: James Crosswell <[email protected]>
1 parent ce4b5e1 commit 35b4a8f

File tree

1 file changed

+1
-0
lines changed
  • samples/Sentry.Samples.Google.Cloud.Functions

1 file changed

+1
-0
lines changed

samples/Sentry.Samples.Google.Cloud.Functions/Function.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class Function : IHttpFunction
1616

1717
public Task HandleAsync(HttpContext context)
1818
{
19+
// Configure structured logging via appsettings.json (Logging:Sentry:LogLevel:)
1920
_logger.LogTrace("LogLevel.Trace is not configured to be sent as structured log");
2021
_logger.LogInformation("Useful info that is added to the breadcrumb list.");
2122
throw new Exception("Bad function");

0 commit comments

Comments
 (0)