Add debug mode to log

This commit is contained in:
Andrew-71 2024-10-13 11:25:00 +03:00
parent ba31bc24a6
commit c22cf9e7c8
7 changed files with 56 additions and 9 deletions

View file

@ -10,12 +10,16 @@ type Config struct {
Port int `json:"port"`
KeyFile string `json:"key-file"`
SQLiteFile string `json:"sqlite-file"`
LogToFile bool `json:"log-to-file"`
LogFile string `json:"log-file"`
}
var DefaultConfig = Config{
Port: 7102,
KeyFile: "private.key",
SQLiteFile: "data.db",
LogToFile: false,
LogFile: "pye.log",
}
var (