mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Add a debug output for cases when approved_at==0
This commit is contained in:
parent
914af887f2
commit
697c0b1f5b
@ -7,6 +7,7 @@ import logging
|
||||
|
||||
from datetime import datetime
|
||||
from os import getenv
|
||||
from pprint import pformat
|
||||
from typing import Dict, List
|
||||
|
||||
from github.PullRequestReview import PullRequestReview
|
||||
@ -104,6 +105,12 @@ class Reviews:
|
||||
)
|
||||
|
||||
approved_at = max(review.submitted_at for review in approved.values())
|
||||
if approved_at == datetime.fromtimestamp(0):
|
||||
logging.info(
|
||||
"Unable to get `datetime.fromtimestamp(0)`, "
|
||||
"here's debug info about reviews: %s",
|
||||
"\n".join(pformat(review) for review in self.reviews.values()),
|
||||
)
|
||||
|
||||
if approved_at < last_changed:
|
||||
logging.info(
|
||||
|
Loading…
Reference in New Issue
Block a user