Skip to content
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

Improve error logging #4351

Merged
merged 11 commits into from
May 21, 2024
Merged

Improve error logging #4351

merged 11 commits into from
May 21, 2024

Conversation

brojd
Copy link
Contributor

@brojd brojd commented May 16, 2024

What this PR does

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • Added the relevant release notes label (see labels prefixed w/ release:). These labels dictate how your PR will
    show up in the autogenerated release notes.

@brojd brojd added pr:no public docs Added to a PR that does not require public documentation updates release:ignore PR will not be added to release notes labels May 20, 2024
@brojd brojd marked this pull request as ready for review May 20, 2024 08:29
@brojd brojd requested a review from a team as a code owner May 20, 2024 08:29
@brojd brojd changed the title Brojd/improve error logging Improve error logging May 20, 2024

import { getQueryParams, isTopNavbar } from './GrafanaPluginRootPage.helpers';

import grafanaGlobalStyle from '!raw-loader!assets/style/grafanaGlobalStyles.css';

export const GrafanaPluginRootPage = (props: AppRootProps) => {
useOnMount(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any difference between this and a useEffect with [] params?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this super simple hook is just to avoid putting [] as dependency array every time you want effect to run only on mount. And it has explicit naming

@brojd brojd enabled auto-merge May 21, 2024 11:23
@brojd brojd added this pull request to the merge queue May 21, 2024
Merged via the queue into dev with commit 1ab2932 May 21, 2024
21 checks passed
@brojd brojd deleted the brojd/improve-error-logging branch May 21, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates release:ignore PR will not be added to release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants