[v3] Tidy up logging

This commit is contained in:
Lea Anthony 2023-08-19 17:15:15 +10:00
commit 3352ebef6e
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

View file

@ -51,6 +51,9 @@ func New(appOptions Options) *App {
result.Logger = DefaultLogger()
}
result.logStartup()
result.logPlatformInfo()
result.Events = NewWailsEventProcessor(result.dispatchEventToWindows)
opts := &assetserver.Options{
@ -81,6 +84,8 @@ func New(appOptions Options) *App {
result.assets = srv
result.assets.LogDetails()
result.bindings, err = NewBindings(appOptions.Bind)
if err != nil {
println("Fatal error in application initialisation: ", err.Error())
@ -387,9 +392,6 @@ func (a *App) NewSystemTray() *SystemTray {
}
func (a *App) Run() error {
a.logStartup()
a.logPlatformInfo()
a.assets.LogDetails()
// Setup panic handler
defer processPanicHandlerRecover()