Skip to content

Commit 0e0bbdb

Browse files
author
Phillip Peralez
committed
Make multiline log consistent
1 parent 29af1e7 commit 0e0bbdb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/hub/action_request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class ActionRequest {
131131
if (response.ok) {
132132
response.body.pipe(stream)
133133
.on("error", (err) => {
134-
winston.error(`[stream] PassThrough stream error`, Object.assign({}, this.logInfo));
134+
winston.error(`[stream] PassThrough stream error`, this.logInfo);
135135
reject(err);
136136
})
137137
.on("finish", () => {
@@ -154,7 +154,7 @@ class ActionRequest {
154154
});
155155
}
156156
catch (e) {
157-
winston.warn(`Erorr connecting to callback url`, this.logInfo);
157+
winston.warn(`Error connecting to callback url`, this.logInfo);
158158
reject(e);
159159
}
160160
}

src/hub/action_request.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,7 @@ export class ActionRequest {
191191
if (response.ok) {
192192
response.body.pipe(stream)
193193
.on("error", (err) => {
194-
winston.error(`[stream] PassThrough stream error`, {
195-
...this.logInfo,
196-
})
194+
winston.error(`[stream] PassThrough stream error`, this.logInfo)
197195
reject(err)
198196
})
199197
.on("finish", () => {
@@ -214,7 +212,7 @@ export class ActionRequest {
214212
reject(responseText)
215213
})
216214
} catch (e) {
217-
winston.warn(`Erorr connecting to callback url`, this.logInfo)
215+
winston.warn(`Error connecting to callback url`, this.logInfo)
218216
reject(e)
219217
}
220218
} else {

0 commit comments

Comments
 (0)