other logging levels
This commit is contained in:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
4
main.go
4
main.go
@@ -156,7 +156,7 @@ func main() {
|
|||||||
s := <-signalChan
|
s := <-signalChan
|
||||||
switch s {
|
switch s {
|
||||||
case syscall.SIGTERM:
|
case syscall.SIGTERM:
|
||||||
log.Debug("SIGTERM received, bye bye")
|
log.Info("SIGTERM received, bye bye")
|
||||||
gtk.MainQuit()
|
gtk.MainQuit()
|
||||||
case syscall.SIGUSR1:
|
case syscall.SIGUSR1:
|
||||||
if *resident {
|
if *resident {
|
||||||
@@ -165,7 +165,7 @@ func main() {
|
|||||||
log.Debug("SIGUSR1 received, showing the window")
|
log.Debug("SIGUSR1 received, showing the window")
|
||||||
showWindowTrigger = true
|
showWindowTrigger = true
|
||||||
} else {
|
} else {
|
||||||
log.Debug("SIGUSR1 received, and I'm not resident, bye bye")
|
log.Info("SIGUSR1 received, and I'm not resident, bye bye")
|
||||||
gtk.MainQuit()
|
gtk.MainQuit()
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user