mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fixed logger softlock
This commit is contained in:
parent
83c9ae4927
commit
c1b3cd7b0a
2 changed files with 5 additions and 2 deletions
|
|
@ -178,6 +178,9 @@ func (l *logger) SetProgress(format string, v ...interface{}) {
|
|||
func (l *logger) StopProgress(format string, v ...interface{}) {
|
||||
if out.InfoLog.Writer() == io.Discard {
|
||||
return
|
||||
} else if l.devView {
|
||||
l.Debug(format, v...)
|
||||
return
|
||||
}
|
||||
|
||||
l.lock.Lock()
|
||||
|
|
|
|||
|
|
@ -127,10 +127,10 @@ func loadCrunchy() {
|
|||
break
|
||||
}
|
||||
if body == nil {
|
||||
out.Err("To use this command, login first. Type `%s login -h` to get help", os.Args[0])
|
||||
out.StopProgress("To use this command, login first. Type `%s login -h` to get help", os.Args[0])
|
||||
os.Exit(1)
|
||||
} else if err != nil {
|
||||
out.Err("Failed to read login information: %v", err)
|
||||
out.StopProgress("Failed to read login information: %v", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue