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

Ensure Metadata is Properly Passed to LogReturn in Logging Class #48

Closed

Conversation

imabutahersiddik
Copy link

This commit addresses an issue in the logging class where the metadata parameter was not consistently passed to the LogReturn instance within the _log method.

Resolves #46

This commit addresses an issue in the logging class where the metadata parameter was not consistently passed to the LogReturn instance within the _log method.
src/logs.ts Outdated
return new LogReturn(
{
raw: logMessage,
diff: this._diffColorCommentMessage(type, logMessage),
type,
level,
},
metadata
metadata // Ensure metadata is passed correctly here
Copy link
Member

Choose a reason for hiding this comment

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

metadata was already passed in here, you've just added a comment

@Keyrxng
Copy link
Member

Keyrxng commented Oct 28, 2024

@imabutahersiddik Hello bud, this feature should fill the revision property of the Metadata object and should pull it from cloudflare as mentioned in the spec. For actions it can be pulled easily from the most up to date sha in relation to what branch the action ran on

@imabutahersiddik

This comment was marked as spam.

Copy link
Member

@0x4007 0x4007 left a comment

Choose a reason for hiding this comment

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

There's nothing about trace in the spec. @gentlementlegen rfc

@imabutahersiddik

This comment was marked as spam.

@0x4007 0x4007 closed this Oct 28, 2024
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.

Properly set the metadata value of LogReturn
3 participants