mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix logging bug in call message processor
This commit is contained in:
parent
0dfc2b2a53
commit
87ceed05fa
1 changed files with 3 additions and 1 deletions
|
|
@ -151,7 +151,9 @@ func (m *MessageProcessor) processCallMethod(method int, rw http.ResponseWriter,
|
|||
// Prepare args for logging. This should never fail since json.Unmarshal succeeded before.
|
||||
jsonArgs, _ := json.Marshal(options.Args)
|
||||
var jsonResult []byte
|
||||
defer m.Info("Binding call complete:", "id", *callID, "method", boundMethod, "args", string(jsonArgs), "result", string(jsonResult))
|
||||
defer func() {
|
||||
m.Info("Binding call complete:", "id", *callID, "method", boundMethod, "args", string(jsonArgs), "result", string(jsonResult))
|
||||
}()
|
||||
|
||||
// Set the context values for the window
|
||||
if window != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue