summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.go b/main.go
index 39b42f1..9751842 100644
--- a/main.go
+++ b/main.go
@@ -64,7 +64,7 @@ func queueMain(currentA widget.Action) {
// this never happends
defer func() {
if r := recover(); r != nil {
- log.Warn("YAHOOOO Recovered in queueMain() application:", r)
+ log.Log("YAHOOOO Recovered in queueMain() application:", r)
log.Println("Recovered from panic:", r)
log.Println("Stack trace:")
debug.PrintStack()
@@ -87,9 +87,9 @@ func queueMain(currentA widget.Action) {
func guiMain() {
defer func() {
if r := recover(); r != nil {
- log.Warn("YAHOOOO Recovered in guiMain application:", r)
- log.Warn("Recovered from panic:", r)
- log.Warn("Stack trace:")
+ log.Log(WARN, "YAHOOOO Recovered in guiMain application:", r)
+ log.Log(WARN, "Recovered from panic:", r)
+ log.Log(WARN, "Stack trace:")
debug.PrintStack()
me.myTree.SendToolkitPanic()
return
@@ -108,7 +108,7 @@ func guiMain() {
}
func Init() {
- log.Warn("Init() TODO: move init() to here")
+ log.Log(WARN, "Init() TODO: move init() to here")
}
// This is important. This sets the defaults for the gui. Without this, there isn't correct padding, etc