Skip to content

Commit

Permalink
Make multiline log consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipperalez committed Apr 12, 2024
1 parent 29af1e7 commit 0e0bbdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/hub/action_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class ActionRequest {
if (response.ok) {
response.body.pipe(stream)
.on("error", (err) => {
winston.error(`[stream] PassThrough stream error`, Object.assign({}, this.logInfo));
winston.error(`[stream] PassThrough stream error`, this.logInfo);
reject(err);
})
.on("finish", () => {
Expand All @@ -154,7 +154,7 @@ class ActionRequest {
});
}
catch (e) {
winston.warn(`Erorr connecting to callback url`, this.logInfo);
winston.warn(`Error connecting to callback url`, this.logInfo);
reject(e);
}
}
Expand Down
6 changes: 2 additions & 4 deletions src/hub/action_request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@ export class ActionRequest {
if (response.ok) {
response.body.pipe(stream)
.on("error", (err) => {
winston.error(`[stream] PassThrough stream error`, {
...this.logInfo,
})
winston.error(`[stream] PassThrough stream error`, this.logInfo)
reject(err)
})
.on("finish", () => {
Expand All @@ -214,7 +212,7 @@ export class ActionRequest {
reject(responseText)
})
} catch (e) {
winston.warn(`Erorr connecting to callback url`, this.logInfo)
winston.warn(`Error connecting to callback url`, this.logInfo)
reject(e)
}
} else {
Expand Down

0 comments on commit 0e0bbdb

Please sign in to comment.