mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[v3] Tidy up logging
This commit is contained in:
parent
2a51ddadfc
commit
3352ebef6e
1 changed files with 5 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue