summaryrefslogtreecommitdiff
path: root/swift/proxy/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'swift/proxy/server.py')
-rw-r--r--swift/proxy/server.py4
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