Skip to content

chore: make typescript happy#347

Merged
mdlavin merged 3 commits intomasterfrom
fixTerserTypes
Sep 21, 2023
Merged

chore: make typescript happy#347
mdlavin merged 3 commits intomasterfrom
fixTerserTypes

Conversation

@mdlavin
Copy link
Copy Markdown
Contributor

@mdlavin mdlavin commented Sep 20, 2023

@DavidTanner did all the work: #344

Comment thread src/utils/logging.ts
const childLogger: Debugger = logger.extend(name);
childLogger.log = log || logger.log;
childLogger.enabled = enabled || logger.enabled;
if (enabled || logger.enabled) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The old approach of explicitly enabling logging on a single logger broke with the upgraded debug package

Comment thread src/utils/logging.ts
child: (name: string) => {
const child = root.extend(name);
child.enabled = root.enabled;
if (root.enabled) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The old approach of explicitly enabling logging on a single logger broke with the upgraded debug package

@DavidTanner
Copy link
Copy Markdown
Contributor

Looks good to me.

@lifeomic-change-management-bot
Copy link
Copy Markdown

The following commits have not yet passed change management validation:

  • 4b6035b: commit not approved by others
  • bb11e8b: commit not approved by others
  • ee81249: commit not approved by others

Created by change-management-bot

@mdlavin mdlavin merged commit 8fa53e1 into master Sep 21, 2023
@mdlavin mdlavin deleted the fixTerserTypes branch September 21, 2023 12:31
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 16.0.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants