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:
r 2023-09-09 06:30:38 +00:00
parent 8eec93e028
commit 60392e61c7
4 changed files with 11 additions and 25 deletions

View file

@ -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)
}