Skip to content

fix(types): Allow any object to be passed as meta to logger.profile#2314

Merged
DABH merged 1 commit intowinstonjs:masterfrom
sokki:patch-1
Jun 28, 2023
Merged

fix(types): Allow any object to be passed as meta to logger.profile#2314
DABH merged 1 commit intowinstonjs:masterfrom
sokki:patch-1

Conversation

@sokki
Copy link
Copy Markdown
Contributor

@sokki sokki commented Jun 20, 2023

It was typed as LogEntry which requires both level and message to be set. That contradicts the implementation that treats these fields as optional.

fixes #1969

@DABH
Copy link
Copy Markdown
Contributor

DABH commented Jun 25, 2023

@sokki , if you merge master into your branch or rebase your PR on master, I think the tests should pass thanks to #2315 . Give it a try and let's see (feel free to @ me so I see the result).

Copy link
Copy Markdown
Contributor

@DABH DABH left a comment

Choose a reason for hiding this comment

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

I approve once CI passes

It was typed as `LogEntry` which requires both `level` and `message` to be set. That contradicts the implementation that treats these fields as optional.

fixes winstonjs#1969
@sokki
Copy link
Copy Markdown
Contributor Author

sokki commented Jun 26, 2023

@DABH I rebased onto master. CI needs manual approval to run.

@DABH DABH merged commit 9d6001a into winstonjs:master Jun 28, 2023
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.

Doc bug for profile(), or missing implementation

2 participants