mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
some debugging additions
This commit is contained in:
parent
6c15ee8517
commit
8f2d64d353
2 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,7 @@ def stdlib_renderer(logger, level, event):
|
|||
logger = logging.getLogger(std_event.get('logger_name'))
|
||||
msg = std_event.pop('msg', std_event['event'])
|
||||
exc_info = std_event.pop('exc_info', None)
|
||||
# msg = f'{msg} {std_event!r}'
|
||||
getattr(logger, level)(
|
||||
msg, exc_info = exc_info, extra=std_event,
|
||||
)
|
||||
|
|
|
@ -55,6 +55,8 @@ async def get_version(name, conf, **kwargs):
|
|||
)
|
||||
|
||||
async with session.get(url, headers=headers, **kwargs) as res:
|
||||
logger.debug('X-RateLimit-Remaining',
|
||||
n=res.headers.get('X-RateLimit-Remaining'))
|
||||
data = await res.json()
|
||||
|
||||
if use_latest_release:
|
||||
|
@ -80,6 +82,8 @@ async def max_tag(
|
|||
while True:
|
||||
async with getter(url) as res:
|
||||
links = res.headers.get('Link')
|
||||
logger.debug('X-RateLimit-Remaining',
|
||||
n=res.headers.get('X-RateLimit-Remaining'))
|
||||
data = await res.json()
|
||||
|
||||
data = [tag["name"] for tag in data if tag["name"] not in ignored_tags]
|
||||
|
|
Loading…
Add table
Reference in a new issue