aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2023-09-09 06:30:38 +0000
committerr <r@freesoftwareextremist.com>2023-09-09 06:38:52 +0000
commit60392e61c714ad16c9b292180e447dac8f28fd59 (patch)
treee5bd64885e5054b0ce59e13854033454458c0b84 /config
parent8eec93e02861ff0d133d8ba5613e2dedbcee40a2 (diff)
downloadbloat-60392e61c714ad16c9b292180e447dac8f28fd59.tar.gz
bloat-60392e61c714ad16c9b292180e447dac8f28fd59.zip
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.
Diffstat (limited to 'config')
-rw-r--r--config/config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go
index a92d66f..141cb39 100644
--- a/config/config.go
+++ b/config/config.go
@@ -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)
}