Set log level to ERROR for production build

This commit is contained in:
Lea Anthony 2020-11-20 14:53:42 +11:00
commit ef8b58b208
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

View file

@ -2,8 +2,10 @@
package app
import "github.com/wailsapp/wails/v2/pkg/logger"
// Init initialises the application for a production environment
func (a *App) Init() error {
println("Processing production cli options")
a.logger.SetLogLevel(logger.ERROR)
return nil
}