mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 05:48:46 +00:00
Disable access log by default
Access logs aren't really useful during normal operation. Add a new flag -v to enable the verbose logging mode, which is still useful during the development. Also remove the log_file config because it's no longer useful.
This commit is contained in:
parent
8eec93e028
commit
60392e61c7
4 changed files with 11 additions and 25 deletions
|
@ -20,7 +20,6 @@ type config struct {
|
|||
TemplatesPath string
|
||||
CustomCSS string
|
||||
PostFormats []model.PostFormat
|
||||
LogFile string
|
||||
}
|
||||
|
||||
func (c *config) IsValid() bool {
|
||||
|
@ -97,7 +96,7 @@ func Parse(r io.Reader) (c *config, err error) {
|
|||
}
|
||||
c.PostFormats = formats
|
||||
case "log_file":
|
||||
c.LogFile = val
|
||||
// ignore
|
||||
default:
|
||||
return nil, errors.New("invalid config key " + key)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue