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

fix(logger): PowertoolsLogFormatter docstring and variable naming update #1585

Merged
merged 13 commits into from
Jul 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/logger/src/formatter/PowertoolsLogFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PowertoolsLogFormatter extends LogFormatter {
*
* @param {UnformattedAttributes} attributes
* @param {LogAttributes} additionalLogAttributes
* @returns {PowertoolsLog}
* @returns {LogItem}
*/
public formatAttributes(
attributes: UnformattedAttributes,
Expand All @@ -36,11 +36,11 @@ class PowertoolsLogFormatter extends LogFormatter {
xray_trace_id: attributes.xRayTraceId,
};

const powertoolLogItem = new LogItem({ attributes: baseAttributes });
const powertoolsLogItem = new LogItem({ attributes: baseAttributes });

powertoolLogItem.addAttributes(additionalLogAttributes);
powertoolsLogItem.addAttributes(additionalLogAttributes);

return powertoolLogItem;
return powertoolsLogItem;
}
}

Expand Down