mirror of https://bitbucket.org/ausocean/av.git
fix log errors
This commit is contained in:
parent
ea0e086de9
commit
6592ea4901
|
@ -28,6 +28,7 @@ LICENSE
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"errors"
|
||||
"os/exec"
|
||||
"flag"
|
||||
|
@ -407,9 +408,9 @@ func createRevidInstance(){
|
|||
// If the config does have a logger, use it to output error, otherwise
|
||||
// just output to std output
|
||||
if config.Logger != nil {
|
||||
config.Logger.Log("FATAL ERROR", err)
|
||||
config.Logger.Log("FATAL ERROR", err.Error())
|
||||
} else {
|
||||
fmt.Printf("FATAL ERROR: %v", err)
|
||||
fmt.Printf("FATAL ERROR: %v", err.Error())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue