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

Reducing amount of code in Observable and Logger #12936

Merged
merged 3 commits into from
Sep 1, 2022
Merged

Reducing amount of code in Observable and Logger #12936

merged 3 commits into from
Sep 1, 2022

Conversation

RaananW
Copy link
Member

@RaananW RaananW commented Sep 1, 2022

No description provided.

@RaananW RaananW requested a review from sebavan September 1, 2022 17:29
@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@sebavan sebavan enabled auto-merge September 1, 2022 19:03
@azure-pipelines
Copy link

@sebavan sebavan merged commit b41deff into BabylonJS:master Sep 1, 2022
@RaananW RaananW deleted the reduceCodeObsLogger branch September 2, 2022 11:05
Logger.Error(Logger.MessageLimitReached.replace(/%LIMIT%/g, "" + entry.limit).replace(/%TYPE%/g, "error"));
break;
}
Logger.Log(Logger.MessageLimitReached.replace(/%LIMIT%/g, "" + entry.limit).replace(/%TYPE%/g, type.name ?? ""));
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't you use Logger.Log / Logger.Warn / Logger.Error depending on the level?

Copy link
Member Author

Choose a reason for hiding this comment

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

i'll fix that, great catch!

RaananW pushed a commit that referenced this pull request Dec 9, 2022
Reducing amount of code in Observable and Logger

Former-commit-id: 565085ccfa00137e86a62e945f14643d851adfbd
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.

4 participants