Updated dependencies and ran go vet

This commit is contained in:
Carlos Salguero
2017-04-11 10:19:08 -03:00
parent 06e9647cc8
commit 46efdb3bc8
3 changed files with 6 additions and 15 deletions

View File

@@ -70,7 +70,8 @@ func main() {
logLevel, err := log.ParseLevel(opts.LogLevel)
if err != nil {
fmt.Errorf("cannot set log level: %s", err.Error())
fmt.Printf("Cannot set log level: %s", err.Error())
os.Exit(1)
}
log.SetLevel(logLevel)
@@ -113,7 +114,7 @@ func main() {
os.Exit(4)
}
if isProfilerEnabled == false {
if !isProfilerEnabled {
count, err := systemProfileDocsCount(session, di.Database)
if err != nil || count == 0 {
log.Error("Profiler is not enabled")