mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
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:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user