show collections and signals log only with debug

This commit is contained in:
nikk gitanes
2021-08-23 03:22:20 +03:00
parent 4508fb3fa6
commit 8a58b741e1
2 changed files with 14 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ import (
"syscall"
"server/log"
"server/settings"
)
func Preconfig(dkill bool) {
@@ -21,7 +22,7 @@ func Preconfig(dkill bool) {
syscall.SIGQUIT)
go func() {
for s := range sigc {
if dkill {
if (dkill && settings.BTsets.EnableDebug) {
log.TLogln("Signal catched:", s)
log.TLogln("To stop server, close it from web / api")
}