diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-07 15:28:40 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-07 15:34:30 +0000 |
commit | 33bef689c1c712776d4277f5a71009090b9d6029 (patch) | |
tree | 6ef0165e72541592e2fc321fd66f079aa45ef4f9 | |
parent | Use logger not logging (diff) | |
download | synapse-33bef689c1c712776d4277f5a71009090b9d6029.tar.xz |
Turn on core dumps
Diffstat (limited to '')
-rwxr-xr-x | synapse/app/homeserver.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 14ce9cd800..58a4c812f6 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -375,10 +375,13 @@ def change_resource_limit(soft_file_no): soft_file_no = hard resource.setrlimit(resource.RLIMIT_NOFILE, (soft_file_no, hard)) - logger.info("Set file limit to: %d", soft_file_no) + + resource.setrlimit( + resource.RLIMIT_CORE, (resource.RLIM_INFINITY, resource.RLIM_INFINITY) + ) except (ValueError, resource.error) as e: - logger.warn("Failed to set file limit: %s", e) + logger.warn("Failed to set file or core limit: %s", e) def setup(config_options): |