Browse Source

Don't log the full debug line when sending a lot of data.

tags/v0.3
Ben Kurtovic 9 years ago
parent
commit
48a14ee3ed
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      earwigbot/wiki/site.py

+ 2
- 0
earwigbot/wiki/site.py View File

@@ -232,6 +232,8 @@ class Site(object):
url, data = self._build_api_query(params, ignore_maxlag, no_assert) url, data = self._build_api_query(params, ignore_maxlag, no_assert)
if "lgpassword" in params: if "lgpassword" in params:
self._logger.debug("{0} -> <hidden>".format(url)) self._logger.debug("{0} -> <hidden>".format(url))
elif len(data) > 1000:
self._logger.debug("{0} -> {1}...".format(url, data[:997]))
else: else:
self._logger.debug("{0} -> {1}".format(url, data)) self._logger.debug("{0} -> {1}".format(url, data))




Loading…
Cancel
Save