diff options
author | James E. Blair <jeblair@redhat.com> | 2020-02-13 13:25:44 -0800 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2020-02-13 13:25:44 -0800 |
commit | 1e04bdb4aa2e76d5c0217185071ba123e41704c9 (patch) | |
tree | ccc88222f20c624c8c4c74b2bad4fcb67bef3551 /zuul/driver/git | |
parent | d1b95639b9c6a4a277419f7c5047495608fd7dc9 (diff) | |
download | zuul-1e04bdb4aa2e76d5c0217185071ba123e41704c9.tar.gz |
Adjust io-level logging in gerrit/git drivers
Currently the logging for polling is verbose. Adjust it as follows:
* In the git driver, don't list every ref we see, just log the count
so we know it's working.
* In the gerrit driver, move logging of some HTTP traffic to the
"io" logger.
* In the default logging configuration for the server, if the '-d'
option is given, do not include "io" logging. The only way to
get this extremely verbose data is now with a custom logging
config.
Change-Id: If0d5877f65296ee2a9f7f0298f8bc6664e6c2a4c
Diffstat (limited to 'zuul/driver/git')
-rw-r--r-- | zuul/driver/git/gitwatcher.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zuul/driver/git/gitwatcher.py b/zuul/driver/git/gitwatcher.py index c67a6a6e3..eca45a0a6 100644 --- a/zuul/driver/git/gitwatcher.py +++ b/zuul/driver/git/gitwatcher.py @@ -116,7 +116,8 @@ class GitWatcher(threading.Thread): try: for project in self.connection.projects: refs = self.lsRemote(project) - self.log.debug("Read refs %s for project %s" % (refs, project)) + self.log.debug("Read %s refs for project %s", + len(refs), project) if not self.projects_refs.get(project): # State for this project does not exist yet so add it. # No event will be triggered in this loop as |