Skip to content

Error toasts last 15s instead of 5s, log error info to console - #2132

Merged
david-crespo merged 3 commits into
mainfrom
be-nicer-about-errors
Apr 8, 2024
Merged

david-crespo merged 3 commits into
mainfrom
be-nicer-about-errors

Conversation

@david-crespo

@david-crespo david-crespo commented Apr 8, 2024 •

Copy link
Copy Markdown
Collaborator

I have some other work in progress that is more elaborate, but I'm not sure we will be able to make it work. This, however, is definitely fine and should be quite useful for internal debugging at least.

Closes #1945

The key thing is that unlike the network tab, this will log regardless of whether the dev tools are open at request time, so you can open the console after the fact. This will not stick around across refreshes however (unless Persist logs is on in the dev tools).

Screenshot 2024-04-08 at 12 27 16 PM

@vercel

vercel Bot commented Apr 8, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Apr 8, 2024 6:01pm

@david-crespo
david-crespo enabled auto-merge (squash) April 8, 2024 18:04
@david-crespo
david-crespo merged commit 238c82b into main Apr 8, 2024
@david-crespo
david-crespo deleted the be-nicer-about-errors branch April 8, 2024 18:07
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Apr 8, 2024
oxidecomputer/console@2a0693f...238c82b

* [238c82bd](oxidecomputer/console@238c82bd) oxidecomputer/console#2132
* [6ae209fb](oxidecomputer/console@6ae209fb) bump omicron to latest (only doc comment changes)
* [44515515](oxidecomputer/console@44515515) remove my weird tmux tutorial from the readme
* [7383152d](oxidecomputer/console@7383152d) oxidecomputer/console#2131
* [277d8ea0](oxidecomputer/console@277d8ea0) oxql: log timeseries count in the right spot
* [d0e90ae1](oxidecomputer/console@d0e90ae1) oxql tweaks
* [29b4f879](oxidecomputer/console@29b4f879) oxidecomputer/console#2126
* [fb12f93c](oxidecomputer/console@fb12f93c) regen API client with array response fix
* [897eb23d](oxidecomputer/console@897eb23d) oxidecomputer/console#2125
* [a7a11762](oxidecomputer/console@a7a11762) oxql: roll schemasTable into schemas
* [b4ef27ce](oxidecomputer/console@b4ef27ce) stick oxql helpers on window.oxql
* [c5c8b83d](oxidecomputer/console@c5c8b83d) shrink huge gap under floating IPs page title
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Apr 8, 2024
oxidecomputer/console@2a0693f...7e34c11

* [7e34c118](oxidecomputer/console@7e34c118) fix logging of error messages containing newlines
* [238c82bd](oxidecomputer/console@238c82bd) oxidecomputer/console#2132
* [6ae209fb](oxidecomputer/console@6ae209fb) bump omicron to latest (only doc comment changes)
* [44515515](oxidecomputer/console@44515515) remove my weird tmux tutorial from the readme
* [7383152d](oxidecomputer/console@7383152d) oxidecomputer/console#2131
* [277d8ea0](oxidecomputer/console@277d8ea0) oxql: log timeseries count in the right spot
* [d0e90ae1](oxidecomputer/console@d0e90ae1) oxql tweaks
* [29b4f879](oxidecomputer/console@29b4f879) oxidecomputer/console#2126
* [fb12f93c](oxidecomputer/console@fb12f93c) regen API client with array response fix
* [897eb23d](oxidecomputer/console@897eb23d) oxidecomputer/console#2125
* [a7a11762](oxidecomputer/console@a7a11762) oxql: roll schemasTable into schemas
* [b4ef27ce](oxidecomputer/console@b4ef27ce) stick oxql helpers on window.oxql
* [c5c8b83d](oxidecomputer/console@c5c8b83d) shrink huge gap under floating IPs page title
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Apr 8, 2024
oxidecomputer/console@2a0693f...7e34c11

* [7e34c118](oxidecomputer/console@7e34c118)
fix logging of error messages containing newlines
* [238c82bd](oxidecomputer/console@238c82bd)
oxidecomputer/console#2132
* [6ae209fb](oxidecomputer/console@6ae209fb)
bump omicron to latest (only doc comment changes)
* [44515515](oxidecomputer/console@44515515)
remove my weird tmux tutorial from the readme
* [7383152d](oxidecomputer/console@7383152d)
oxidecomputer/console#2131
* [277d8ea0](oxidecomputer/console@277d8ea0)
oxql: log timeseries count in the right spot
* [d0e90ae1](oxidecomputer/console@d0e90ae1)
oxql tweaks
* [29b4f879](oxidecomputer/console@29b4f879)
oxidecomputer/console#2126
* [fb12f93c](oxidecomputer/console@fb12f93c)
regen API client with array response fix
* [897eb23d](oxidecomputer/console@897eb23d)
oxidecomputer/console#2125
* [a7a11762](oxidecomputer/console@a7a11762)
oxql: roll schemasTable into schemas
* [b4ef27ce](oxidecomputer/console@b4ef27ce)
stick oxql helpers on window.oxql
* [c5c8b83d](oxidecomputer/console@c5c8b83d)
shrink huge gap under floating IPs page title

This branch was successfully deployed

1 active deployment
Preview — b130ceb6 Deployed Apr 8, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep error toasts around longer

1 participant