Improve client logging.
Some checks failed
Linting and tests / Linting (push) Failing after 4s
Linting and tests / Tests (push) Failing after 3s

This commit is contained in:
2025-09-10 20:04:19 +05:00
parent e3b9c9ae40
commit c2142cc1a6
15 changed files with 118 additions and 44 deletions

View File

@@ -1,8 +1,6 @@
package options
import (
"log/slog"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/dialog"
@@ -11,7 +9,7 @@ import (
)
func (o *options) closeOptionsDialog(save bool) {
slog.Debug("Closing options dialog.", "save", save)
o.logger.Debug("Closing options dialog.", "save", save)
if !save {
return
@@ -23,7 +21,7 @@ func (o *options) closeOptionsDialog(save bool) {
}
if err := widget.SaveHandler(); err != nil {
slog.Error("Failed to save options for module!", "module", widget.Name, "error", err.Error())
o.logger.Error("Failed to save options for module!", "module", widget.Name, "error", err.Error())
}
}
}