mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot_merge: logging of gh requests
The loggers would only print the "tail" of the path, not including the repo name, or the `/repos` prefix. While this made logs shorter, it was not intentional and made debugging some issues on endpoints harder than necessary as the calls had to be adjusted mentally, which is completely unnecessary.
This commit is contained in:
parent
6e1fc61781
commit
5e1048c6da
@ -105,12 +105,8 @@ class GH(object):
|
||||
"""
|
||||
:type check: bool | dict[int:Exception]
|
||||
"""
|
||||
r = self._session.request(
|
||||
method,
|
||||
'{}/repos/{}/{}'.format(self._url, self._repo, path),
|
||||
params=params,
|
||||
json=json
|
||||
)
|
||||
path = f'/repos/{self._repo}/{path}'
|
||||
r = self._session.request(method, self._url + path, params=params, json=json)
|
||||
self._log_gh(_gh, method, path, params, json, r)
|
||||
if check:
|
||||
if isinstance(check, collections.abc.Mapping):
|
||||
|
Loading…
Reference in New Issue
Block a user