diff --git a/Procfile b/Procfile index dd838293..094ebc0a 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn app.main:APP -k uvicorn.workers.UvicornWorker \ No newline at end of file +web: gunicorn app.main:APP -w 4 -k uvicorn.workers.UvicornWorker diff --git a/app/services/location/jhu.py b/app/services/location/jhu.py index 21990c8c..53aa6ff9 100644 --- a/app/services/location/jhu.py +++ b/app/services/location/jhu.py @@ -1,6 +1,7 @@ """app.services.location.jhu.py""" import csv import logging +import os from datetime import datetime from asyncache import cached @@ -57,7 +58,7 @@ async def get_category(category): url = BASE_URL + "time_series_covid19_%s_global.csv" % category # Request the data - LOGGER.info("jhu Requesting data...") + LOGGER.info(f"pid:{os.getpid()}: jhu Requesting data...") async with httputils.CLIENT_SESSION.get(url) as response: text = await response.text() diff --git a/app/utils/countries.py b/app/utils/countries.py index ebb09bb3..d239b5ee 100644 --- a/app/utils/countries.py +++ b/app/utils/countries.py @@ -374,6 +374,6 @@ def country_code(value): """ code = COUNTRY_NAME__COUNTRY_CODE.get(value, DEFAULT_COUNTRY_CODE) if code == DEFAULT_COUNTRY_CODE: - LOGGER.info(f"No country code found for '{value}'. Using '{code}'!") + LOGGER.debug(f"No country code found for '{value}'. Using '{code}'!") return code