This commit is contained in:
parent
9dc986b08c
commit
a992941aef
|
@ -66,7 +66,15 @@ root_logger = logging.getLogger()
|
|||
root_logger.setLevel(logging.DEBUG)
|
||||
root_logger.addHandler(stream)
|
||||
|
||||
ignore_logs = ["_trace", "httpx", "_client", "_trace.atrace", "aiohttp", "_client"]
|
||||
ignore_logs = [
|
||||
"_trace",
|
||||
"httpx",
|
||||
"_client",
|
||||
"_trace.atrace",
|
||||
"aiohttp",
|
||||
"_client",
|
||||
"._make_request",
|
||||
]
|
||||
for lgr in ignore_logs:
|
||||
loggr = logging.getLogger(lgr)
|
||||
loggr.setLevel(logging.INFO)
|
||||
|
|
|
@ -65,7 +65,9 @@ class ViewedStorage:
|
|||
try:
|
||||
if os.path.exists(VIEWS_FILEPATH):
|
||||
start_date_int = os.path.getmtime(VIEWS_FILEPATH)
|
||||
start_date_str = datetime.fromtimestamp(start_date_int).strftime('%Y-%m-%d')
|
||||
start_date_str = datetime.fromtimestamp(start_date_int).strftime(
|
||||
"%Y-%m-%d"
|
||||
)
|
||||
self.start_date = start_date_str
|
||||
now_date = datetime.now().strftime("%Y-%m-%d")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user