Skip to content

Commit 436f064

Browse files
committed
also destructure name
1 parent 5a74bae commit 436f064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pino-transport-github-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const LEVEL_TO_ACTIONS_CORE_LOG_METHOD = {
1414
};
1515

1616
export const transport = through.obj(function (chunk, enc, cb) {
17-
const { level, hostname, pid, msg, time, ...meta } = JSON.parse(chunk);
17+
const { level, hostname, pid, msg, time, name, ...meta } = JSON.parse(chunk);
1818
const levelLabel = pino.levels.labels[level] || level;
1919
const logMethodName = LEVEL_TO_ACTIONS_CORE_LOG_METHOD[levelLabel];
2020

0 commit comments

Comments
 (0)