mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Set log level to ERROR for production build
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user