Export UI handlers for reuse in other tools (#113)

* export UI handlers for reuse in other tools

* bump jotframe to fix cursor issues at frame close
This commit is contained in:
Alex Goodman
2020-07-30 15:16:58 -04:00
committed by GitHub
parent 857f41b04b
commit 271ba35c85
10 changed files with 108 additions and 59 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ func initAppConfig() {
}
func initLogging() {
config := logger.LogConfig{
cfg := logger.LogConfig{
EnableConsole: (appConfig.Log.FileLocation == "" || appConfig.CliOptions.Verbosity > 0) && !appConfig.Quiet,
EnableFile: appConfig.Log.FileLocation != "",
Level: appConfig.Log.LevelOpt,
@@ -98,7 +98,7 @@ func initLogging() {
FileLocation: appConfig.Log.FileLocation,
}
logWrapper := logger.NewZapLogger(config)
logWrapper := logger.NewZapLogger(cfg)
syft.SetLogger(logWrapper)
stereoscope.SetLogger(logWrapper)
}
+2
View File
@@ -55,6 +55,8 @@ func startWorker(userInput string) <-chan error {
Type: event.AppUpdateAvailable,
Value: newVersion,
})
} else {
log.Debugf("No new %s update available", internal.ApplicationName)
}
}