mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
add debug
This commit is contained in:
parent
60ae0c1598
commit
47e5b109c0
1 changed files with 11 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ import (
|
|||
var NotificationLock sync.RWMutex
|
||||
var NotificationCategories = make(map[string]NotificationCategory)
|
||||
var Notifier shout.Notifier
|
||||
var appName = application.Get().Config().Name
|
||||
var appName string
|
||||
|
||||
// Creates a new Notifications Service.
|
||||
func New() *Service {
|
||||
|
|
@ -31,6 +31,8 @@ func New() *Service {
|
|||
|
||||
// ServiceStartup is called when the service is loaded
|
||||
func (ns *Service) ServiceStartup(ctx context.Context, options application.ServiceOptions) error {
|
||||
appName = application.Get().Config().Name
|
||||
|
||||
if err := loadCategories(); err != nil {
|
||||
fmt.Printf("Failed to load notification categories: %v\n", err)
|
||||
}
|
||||
|
|
@ -47,6 +49,14 @@ func (ns *Service) ServiceStartup(ctx context.Context, options application.Servi
|
|||
return
|
||||
}
|
||||
|
||||
fmt.Printf("\n---------- NOTIFICATION RESPONSE DEBUG ----------\n")
|
||||
fmt.Printf("notificationID: %s\n", notificationID)
|
||||
fmt.Printf("action: %s\n", action)
|
||||
fmt.Printf("platformData: %+v\n", platformData)
|
||||
fmt.Printf("target: %+v (signature: %s)\n", target, target.Signature())
|
||||
fmt.Printf("response: %+v (signature: %s)\n", notifierResponse, notifierResponse.Signature())
|
||||
fmt.Printf("----------------------------------------------\n")
|
||||
|
||||
response := NotificationResponse{
|
||||
ID: notificationID,
|
||||
ActionIdentifier: action,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue