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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"errors"
|
"errors"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"flag"
|
"flag"
|
||||||
|
@ -407,9 +408,9 @@ func createRevidInstance(){
|
||||||
// If the config does have a logger, use it to output error, otherwise
|
// If the config does have a logger, use it to output error, otherwise
|
||||||
// just output to std output
|
// just output to std output
|
||||||
if config.Logger != nil {
|
if config.Logger != nil {
|
||||||
config.Logger.Log("FATAL ERROR", err)
|
config.Logger.Log("FATAL ERROR", err.Error())
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("FATAL ERROR: %v", err)
|
fmt.Printf("FATAL ERROR: %v", err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue