File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- web : gunicorn app.main:APP -k uvicorn.workers.UvicornWorker
1+ web : gunicorn app.main:APP -w 4 - k uvicorn.workers.UvicornWorker
Original file line number Diff line number Diff line change 11"""app.services.location.jhu.py"""
22import csv
33import logging
4+ import os
45from datetime import datetime
56
67from asyncache import cached
@@ -57,7 +58,7 @@ async def get_category(category):
5758 url = BASE_URL + "time_series_covid19_%s_global.csv" % category
5859
5960 # Request the data
60- LOGGER .info (" jhu Requesting data..." )
61+ LOGGER .info (f"pid: { os . getpid () } : jhu Requesting data..." )
6162 async with httputils .CLIENT_SESSION .get (url ) as response :
6263 text = await response .text ()
6364
Original file line number Diff line number Diff line change @@ -374,6 +374,6 @@ def country_code(value):
374374 """
375375 code = COUNTRY_NAME__COUNTRY_CODE .get (value , DEFAULT_COUNTRY_CODE )
376376 if code == DEFAULT_COUNTRY_CODE :
377- LOGGER .info (f"No country code found for '{ value } '. Using '{ code } '!" )
377+ LOGGER .debug (f"No country code found for '{ value } '. Using '{ code } '!" )
378378
379379 return code
You can’t perform that action at this time.
0 commit comments