mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 10:08:36 +02:00
fix(logging): procrastinate job logs not showing up
This commit is contained in:
@@ -277,27 +277,16 @@ if "procrastinate" in sys.argv:
|
|||||||
"version": 1,
|
"version": 1,
|
||||||
"disable_existing_loggers": False,
|
"disable_existing_loggers": False,
|
||||||
"formatters": {
|
"formatters": {
|
||||||
"procrastinate": {
|
|
||||||
"format": "[%(asctime)s] - %(levelname)s - %(name)s - %(message)s -> %(procrastinate)s",
|
|
||||||
"datefmt": "%Y-%m-%d %H:%M:%S",
|
|
||||||
},
|
|
||||||
"standard": {
|
"standard": {
|
||||||
"format": "[%(asctime)s] - %(levelname)s - %(name)s - %(message)s",
|
"format": "[%(asctime)s] - %(levelname)s - %(name)s - %(message)s",
|
||||||
"datefmt": "%Y-%m-%d %H:%M:%S",
|
"datefmt": "%Y-%m-%d %H:%M:%S",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"filters": {
|
|
||||||
"procrastinate": {
|
|
||||||
"()": "WYGIWYH.logs.ProcrastinateFilter.ProcrastinateFilter",
|
|
||||||
"name": "procrastinate",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"handlers": {
|
"handlers": {
|
||||||
"procrastinate": {
|
"procrastinate": {
|
||||||
"level": "INFO",
|
"level": "INFO",
|
||||||
"class": "logging.StreamHandler",
|
"class": "logging.StreamHandler",
|
||||||
"formatter": "procrastinate",
|
"formatter": "standard",
|
||||||
"filters": ["procrastinate"],
|
|
||||||
},
|
},
|
||||||
"console": {
|
"console": {
|
||||||
"class": "logging.StreamHandler",
|
"class": "logging.StreamHandler",
|
||||||
@@ -308,10 +297,10 @@ if "procrastinate" in sys.argv:
|
|||||||
"loggers": {
|
"loggers": {
|
||||||
"procrastinate": {
|
"procrastinate": {
|
||||||
"handlers": ["procrastinate"],
|
"handlers": ["procrastinate"],
|
||||||
"propagate": True,
|
"propagate": False,
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"handlers": None,
|
"handlers": ["console"],
|
||||||
"level": "INFO",
|
"level": "INFO",
|
||||||
"propagate": False,
|
"propagate": False,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ done
|
|||||||
|
|
||||||
rm -f /tmp/migrations_complete
|
rm -f /tmp/migrations_complete
|
||||||
|
|
||||||
exec python manage.py procrastinate worker
|
exec watchfiles --filter python "python manage.py procrastinate worker"
|
||||||
|
|||||||
Reference in New Issue
Block a user