Skip to content

Commit

Permalink
Merge 176a2b6 into 94ca3fa
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbox committed Oct 25, 2023
2 parents 94ca3fa + 176a2b6 commit 914fcb1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions iconlogger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ func detailsToString(details []helpers.IDetails) string {
func getSymbol(level string) string {
switch level {
case "warning":
return " "
return " ⚠️ "
case "success":
return "✅ "
return " ✅ "
case "fatal", "error":
return "❌ "
return " ❌ "
case "debug":
return "🐞 "
return " 🐞 "
default:
return "ℹ️ "
return " ℹ️ "
}
}

Expand Down
12 changes: 6 additions & 6 deletions iconlogger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ func TestGetSymbol(t *testing.T) {
level string
expect string
}{
{"Warning", "warning", " "},
{"Success", "success", "✅ "},
{"Fatal", "fatal", "❌ "},
{"Error", "error", "❌ "},
{"Debug", "debug", "🐞 "},
{"Default", "info", "ℹ️ "},
{"Warning", "warning", " ⚠️ "},
{"Success", "success", " ✅ "},
{"Fatal", "fatal", " ❌ "},
{"Error", "error", " ❌ "},
{"Debug", "debug", " 🐞 "},
{"Default", "info", " ℹ️ "},
}

for _, tt := range tests {
Expand Down
3 changes: 2 additions & 1 deletion iconlogger/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ func (il *IconLogger) StartSpinner(w *os.File, message string) {
return
}
if isSupported() {
il.spinner = spinnerpkg.New(spinnerpkg.CharSets[14], 100*time.Millisecond, spinnerpkg.WithWriterFile(w)) // Build our new spinner
il.spinner = spinnerpkg.New(spinnerpkg.CharSets[70], 100*time.Millisecond, spinnerpkg.WithWriterFile(w)) // Build our new spinner
il.spinner.Prefix = " "
il.spinner.Suffix = " " + message
il.spinner.Start()
}
Expand Down

0 comments on commit 914fcb1

Please sign in to comment.