Skip to content

Commit

Permalink
[v3] Fix service name determination
Browse files Browse the repository at this point in the history
Should use service instance, not Service wrapper struct.
  • Loading branch information
windom committed Oct 14, 2024
1 parent 94e8f8b commit e8f8e26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mkdocs-website/docs/en/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Taskfile refactor by [leaanthony](https://github.com/leaanthony) in [#3748](https://github.com/wailsapp/wails/pull/3748)
- Upgrade to `go-webview2` v1.0.16 by [leaanthony](https://github.com/leaanthony)
- Fixed `Screen` type to include `ID` not `Id` by [etesam913](https://github.com/etesam913) in [#3778](https://github.com/wailsapp/wails/pull/3778)
- Fixed service name determination by [windom](https://github.com/windom/) in [#????](https://github.com/wailsapp/wails/pull/????)

## v3.0.0-alpha.7 - 2024-09-18

Expand Down
2 changes: 1 addition & 1 deletion v3/pkg/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func New(appOptions Options) *App {
if err != nil {
name := service.options.Name
if name == "" {
name = getServiceName(service)
name = getServiceName(service.instance)
}
globalApplication.Logger.Error("OnStartup() failed:", "service", name, "error", err.Error())
continue
Expand Down

0 comments on commit e8f8e26

Please sign in to comment.