-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve and unify ingestion server logging, simplify docker CMDs (#2639)
* Correct and unify the logging for the ingestion server * Simplify ingestion server command, remove unused docker-compose file * Remove unused param * Remove comment * Remove logging config from indexer worker * Unify ingestion server and indexer worker config * Add reference link
- Loading branch information
1 parent
82f7ece
commit dd49aea
Showing
7 changed files
with
42 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,44 @@ | ||
bind = ["0.0.0.0:8001"] | ||
capture_output = True | ||
accesslog = "-" | ||
errorlog = "-" | ||
chdir = "./ingestion_server/" | ||
timeout = 120 | ||
reload = True | ||
logconfig_dict = { | ||
# NOTE: Most of this is inherited from the default configuration | ||
# https://github.com/benoitc/gunicorn/blob/cc2e3835784542e65886cd27f64d444309fbaad0/gunicorn/glogging.py#L48-L86 | ||
"version": 1, | ||
"disable_existing_loggers": False, | ||
"formatters": { | ||
"generic": { | ||
"format": "[%(asctime)s - %(name)s - %(lineno)3d][%(levelname)s] %(message)s", # noqa: E501 | ||
}, | ||
}, | ||
"root": {"level": "INFO", "handlers": ["console"]}, | ||
"loggers": { | ||
"gunicorn.error": { | ||
"level": "DEBUG", | ||
"handlers": ["console"], | ||
"propagate": False, # Prevents default handler from also logging this | ||
"qualname": "gunicorn.error", | ||
}, | ||
"gunicorn.access": { | ||
"level": "INFO", | ||
"handlers": ["console"], | ||
"propagate": False, # Prevents default handler from also logging this | ||
"qualname": "gunicorn.access", | ||
}, | ||
"": { | ||
"level": "INFO", | ||
"handlers": ["console"], | ||
}, | ||
}, | ||
"handlers": { | ||
"console": { | ||
"class": "logging.StreamHandler", | ||
"formatter": "generic", | ||
"stream": "ext://sys.stdout", | ||
}, | ||
}, | ||
} | ||
loglevel = "debug" | ||
wsgi_app = "api:api" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters