firebase-tools-ui icon indicating copy to clipboard operation
firebase-tools-ui copied to clipboard

Log Viewer doesn't respect log entry severity when logging from cloud functions

Open jaytavares opened this issue 3 years ago • 1 comments

The log viewer ignores the severity of log entries. When logging errors from cloud functions running in the emulator the entries always display with a severity of 'Info'. I tried using the standard console.error() and functions.logger.error(). I also tried logging with and without Error objects:

functions.logger.error('Error 1')
functions.logger.error(new Error('Error 2'))
console.error('Error 3')
console.error(new Error('Error 4'))

All display in the Log Viewer with a severity of 'Info' in the gutter:

LogViewer

jaytavares avatar May 21 '21 02:05 jaytavares

I can confirm the emulator logs don't seem to respect the severity.

gbourne1 avatar Dec 16 '22 03:12 gbourne1