firebase / firebase/firebase-tools-ui

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

Open
#567 1 comment 1 reaction 1 assignee Claimed by @abeisgoat View on GitHub
Dominant language
TypeScript
Stars
291
Forks
74
PR merge metrics
No merged PRs in 30d

Description

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:

```typescript
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.