Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 8, 2024

Conversation

david-crespo
Copy link
Collaborator

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

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

Copy link

vercel bot commented Apr 8, 2024

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