Skip to content

Commit cbd9df5

Browse files
committed
added useful prints
1 parent 0910bcb commit cbd9df5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

systray/systray.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ type Systray struct {
2626
// it works by finding the executable path and launching it before quitting
2727
func (s *Systray) Restart() {
2828

29-
fmt.Println(s.path)
30-
fmt.Println(osext.Executable())
3129
if s.path == "" {
30+
fmt.Println("Update binary path not set")
3231
var err error
3332
s.path, err = osext.Executable()
3433
if err != nil {
3534
fmt.Printf("Error getting exe path using osext lib. err: %v\n", err)
3635
}
36+
} else {
37+
fmt.Println("Starting updated binary: ", s.path)
3738
}
3839

3940
// Trim newlines (needed on osx)

0 commit comments

Comments
 (0)