diff options
author | Zuul <zuul@review.opendev.org> | 2023-05-17 23:20:30 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-05-17 23:20:30 +0000 |
commit | 4c7b2e3bb573a451ee7b2c0dec9e0a8da9d94129 (patch) | |
tree | 28274904f8ea2a27ed834b91df0755621bc66f3a /swift/proxy/server.py | |
parent | 667f733cb938ddf5e5f46732463c46d030d0603d (diff) | |
parent | 0a4e41701dbb5795ff4cab7a2c68a41c90bd51e7 (diff) | |
download | swift-master.tar.gz |
Diffstat (limited to 'swift/proxy/server.py')
-rw-r--r-- | swift/proxy/server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swift/proxy/server.py b/swift/proxy/server.py index a5ba1d858..64a14ff1d 100644 --- a/swift/proxy/server.py +++ b/swift/proxy/server.py @@ -36,7 +36,7 @@ from swift.common.utils import Watchdog, get_logger, \ get_remote_client, split_path, config_true_value, generate_trans_id, \ affinity_key_function, affinity_locality_predicate, list_from_csv, \ parse_prefixed_conf, config_auto_int_value, node_to_string, \ - config_request_node_count_value, config_percent_value + config_request_node_count_value, config_percent_value, cap_length from swift.common.registry import register_swift_info from swift.common.constraints import check_utf8, valid_api_version from swift.proxy.controllers import AccountController, ContainerController, \ @@ -736,7 +736,7 @@ class Application(object): else: fmt = 'ERROR %(status)d %(body)s Trying to %(method)s ' \ '%(path)s From %(type)s Server' - values['body'] = body[:1024] + values['body'] = cap_length(body, 1024) self.error_occurred(node, fmt % values) else: ok = True |