Skip to content

Commit

Permalink
fix(console): hidden logs warning is shown after clearing logs (#6701)
Browse files Browse the repository at this point in the history
## Checklist

- [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [ ] Description explains motivation and solution
- [ ] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
polamoros authored Jun 14, 2024
1 parent e388451 commit 5e3c95b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/wing-console/console/server/src/router/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,13 @@ export const createAppRouter = () => {
let noVerboseLogsCount = 0;

const filteredLogs = ctx.logger.messages.filter((entry) => {
if (entry.level !== "verbose") {
noVerboseLogsCount++;
}

// Filter by timestamp
if (entry.timestamp && entry.timestamp < filters.timestamp) {
return false;
}
if (entry.level !== "verbose") {
noVerboseLogsCount++;
}
// Filter by level
if (!filters.level[entry.level]) {
return false;
Expand Down

0 comments on commit 5e3c95b

Please sign in to comment.