Log Drain: warnings coming through as error level #7406
Replies: 1 comment
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Have setup a basic log drain to AWS via a simple Lambda that just relogs the json that it receives.
However I noticed that log lines generated from
console.warn
that on vercel.com's log viewer are correctly are listed as "Warning" are all coming through the log sync with"level": "error"
. Is there any way to get this to plumb through correctly or do we need to start annotating the log text itself in some way so it can be filtered correctly after the fact?Other vercel logs are coming through successfully as warning (like status 404 warnings).
Example
Here's an example event that came through with the wrong level of error.
First in vercel.com's log viewer it's correctly identified as a warning:
But the JSON through the log sync has it as level error:
Beta Was this translation helpful? Give feedback.
All reactions