Skip to content

Commit b1688fc

Browse files
committed
1 parent fe86ee3 commit b1688fc

3 files changed

Lines changed: 28 additions & 10 deletions

File tree

β€ŽTask/Env.jsβ€Ž

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ function Env(name, opts) {
292292
try {
293293
if (resp.headers['set-cookie']) {
294294
const ck = resp.headers['set-cookie'].map(this.cktough.Cookie.parse).toString()
295-
this.ckjar.setCookieSync(ck, null)
295+
if (ck) {
296+
this.ckjar.setCookieSync(ck, null)
297+
}
296298
nextOpts.cookieJar = this.ckjar
297299
}
298300
} catch (e) {
@@ -433,12 +435,14 @@ function Env(name, opts) {
433435
$notify(title, subt, desc, toEnvOpts(opts))
434436
}
435437
}
436-
let logs = ['', '==============πŸ“£η³»η»Ÿι€šηŸ₯πŸ“£==============']
437-
logs.push(title)
438-
subt ? logs.push(subt) : ''
439-
desc ? logs.push(desc) : ''
440-
console.log(logs.join('\n'))
441-
this.logs = this.logs.concat(logs)
438+
if (!this.isMuteLog) {
439+
let logs = ['', '==============πŸ“£η³»η»Ÿι€šηŸ₯πŸ“£==============']
440+
logs.push(title)
441+
subt ? logs.push(subt) : ''
442+
desc ? logs.push(desc) : ''
443+
console.log(logs.join('\n'))
444+
this.logs = this.logs.concat(logs)
445+
}
442446
}
443447

444448
log(...logs) {

β€ŽTask/Env.min.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)