-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid uvicorn logger and use __main__ logger and remove logger from multiprocessing code #320
Conversation
import subprocess | ||
from multiprocessing import Manager, Pool | ||
from typing import Dict, List, Tuple | ||
|
||
LOG = logging.getLogger("uvicorn.access") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't used anyway
Quality Gate passedIssues Measures |
@@ -28,6 +30,7 @@ def create_db_and_tables(): | |||
|
|||
@asynccontextmanager | |||
async def lifespan(app_: FastAPI): | |||
configure_log() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call a function that configures the log before doing the logging
Nice! I'll see if I can reproduce the error locally. Otherwise I could perhaps put it on our server and we'll know next week (or after the vacation :) ). |
Exactly! ;) |
I didn't manage to reproduce the issue on my laptop, so testing on the server it is! Would it be fine to merge the latest master into this PR? Then I could production-test the d4tools update as well. |
The d4tools fix is merged in this branch. So it should be fine to test |
I'm merging this PR seems it seems to work (tested on our dev server). Let's see how it goes after next weekend 🤞🏻 |
Description
Added/Changed/Fixed
How to test
Expected outcome
Review
This version is a