Skip to content

Commit

Permalink
replace log.Errorf with log.Error resolves #2
Browse files Browse the repository at this point in the history
  • Loading branch information
zoli committed Aug 4, 2015
1 parent 30af493 commit a049c70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func (t *tbfe) renderthread() {
dorender := func() {
defer func() {
if r := recover(); r != nil {
log.Errorf("Panic in renderthread: %v\n%s", r, string(debug.Stack()))
log.Error("Panic in renderthread: %v\n%s", r, string(debug.Stack()))
if pc > 1 {
panic(r)
}
Expand Down Expand Up @@ -708,7 +708,7 @@ func setColorMode() {
)

if err := termbox.SetColorMode(termbox.ColorMode256); err != nil {
log.Errorf("Unable to use 256 color mode: %s", err)
log.Error("Unable to use 256 color mode: %s", err)
} else {
log.Debug("Using 256 color mode")
mode256 = true
Expand Down Expand Up @@ -800,7 +800,8 @@ func main() {
}()

if err := termbox.Init(); err != nil {
log.Close(err)
log.Error(err)
log.Close()
return
}

Expand Down

0 comments on commit a049c70

Please sign in to comment.