Skip to content

Commit b8e9f6a

Browse files
committed
Log config update (#15)
* make missing country code info level log * add gunicorn config check * force logging to stderr * log-level info
1 parent 6eb92df commit b8e9f6a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ script:
1010
- "make test"
1111
- "make lint"
1212
- "make check-fmt"
13+
- "gunicorn --check-config app.main:APP"
1314
after_success:
1415
- coveralls

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: gunicorn app.main:APP -k uvicorn.workers.UvicornWorker
1+
web: gunicorn app.main:APP --log-file=- --log-level info -k uvicorn.workers.UvicornWorker

app/utils/countries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.warning(f"No country code found for '{value}'. Using '{code}'!")
377+
LOGGER.info(f"No country code found for '{value}'. Using '{code}'!")
378378

379379
return code

0 commit comments

Comments
 (0)