1
0
mirror of https://github.com/Luzifer/webcheck.git synced 2024-09-18 23:22:58 +00:00

Rename default values for log directory

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-07-23 16:20:57 +02:00
parent 0ccbc80797
commit 8d93d29e48
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -25,7 +25,7 @@ var (
cfg = struct {
DisableLog bool `flag:"no-log" default:"false" description:"Disable response body logging"`
Interval time.Duration `flag:"interval,i" default:"1s" description:"Check interval"`
LogDir string `flag:"log-dir,l" default:"./request-log/" description:"Directory to log non-matched requests to"`
LogDir string `flag:"log-dir,l" default:"/tmp/resp-log/" description:"Directory to log non-matched requests to"`
LogRetention time.Duration `flag:"log-retention" default:"24h" description:"When to clean up file from log-dir"`
Match string `flag:"match,m" default:".*" description:"RegExp to match the response body against to validate it"`
Timeout time.Duration `flag:"timeout,t" default:"30s" description:"Timeout for the request"`
@ -276,7 +276,7 @@ func dumpRequest(body io.Reader) (string, error) {
return "", err
}
f, err := ioutil.TempFile(cfg.LogDir, "request")
f, err := ioutil.TempFile(cfg.LogDir, "resp")
if err != nil {
return "", err
}