open-consul/website/source/docs/agent
Hans Hasselberg 1bf94b01e2
log: handle discard all logfiles properly (#6945)
* Handle discard all logfiles properly

Fixes https://github.com/hashicorp/consul/issues/6892.

The [docs](https://www.consul.io/docs/agent/options.html#_log_rotate_max_files) are stating:

> -log-rotate-max-files - to specify the maximum number of older log
> file archives to keep. Defaults to 0 (no files are ever deleted). Set to
> -1 to disable rotation and discard all log files.

But the `-1` case was not implemented and led to a panic when being
used.

Co-Authored-By: Freddy <freddygv@users.noreply.github.com>
2019-12-18 22:31:22 +01:00
..
config-entries docs: add sentence linking to available service-resolver filters 2019-11-18 09:38:36 -06:00
basics.html.md [docs] Adding Links to Learn (#6611) 2019-10-14 10:40:35 -05:00
checks.html.md Checks to passing/critical only after reaching a consecutive success/failure threshold (#5739) 2019-10-14 21:49:49 +01:00
cloud-auto-join.html.md Merge pull request #6902 from hashicorp/k8s-auto-join-min-perms 2019-12-06 13:35:15 -08:00
config_entries.html.md docs: Add link to config entries 2019-11-08 09:51:39 -08:00
dns.html.md Sync of OSS changes to support namespaces (#6909) 2019-12-09 21:26:41 -05:00
encryption.html.md [docs] Adding Links to Learn (#6611) 2019-10-14 10:40:35 -05:00
kv.html.md [docs] Adding Links to Learn (#6611) 2019-10-14 10:40:35 -05:00
options.html.md log: handle discard all logfiles properly (#6945) 2019-12-18 22:31:22 +01:00
rpc.html.md website: rename *.markdown to *.md 2017-05-17 20:25:45 +02:00
sentinel.html.markdown.erb docs: fixed typos on a few doc pages (#5870) 2019-06-24 15:25:57 -06:00
services.html.md Sync of OSS changes to support namespaces (#6909) 2019-12-09 21:26:41 -05:00
telemetry.html.md docs: Miscellaneous docs cleanup (#6742) 2019-11-05 20:34:46 -08:00
watches.html.md Add missing docs for checks Watch type (#5188) 2019-11-13 11:24:35 -08:00