Add debug mode to log
This commit is contained in:
parent
ba31bc24a6
commit
c22cf9e7c8
7 changed files with 56 additions and 9 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue