Django and LogDNA, server seems to be getting stuck
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- django, python
- Domain
- backend, observability
Research direction
Start by reproducing the reported hang with the Django LOGGING configuration in the issue and compare it with the linked LogDNA Python guide. Identify whether the LogDNAHandler configuration causes the server to stop responding, then document a confirmed cause and a verifiable resolution.
Written by the indexing model from the issue text.
Description
Hey LogDNA,
It could be my configuration but when trying to use LogDNA and Django, the server seems to get stuck. Here's some cursory information:
import logging
from logdna import LogDNAHandler
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s]" +
"%(message)s",
'datefmt': "%d/%b/%Y %H:%M:%S"
},
'color': {
'()': 'colorlog.ColoredFormatter',
'format': '%(log_color)s%(asctime)s %(levelname)-8s %(name)s %(module)s %(pathname)s:%(lineno)s%(reset)s \n\r\t %(message)s',
'datefmt': "%d/%b/%Y %H:%M:%S",
'log_colors': {
'DEBUG': 'cyan',
'INFO': 'green',
'WARNING': 'yellow',
'ERROR': 'red',
'CRITICAL': 'red,bg_white',
}
}
},
'filters': {
'require_debug_true': {
'()': 'django.utils.log.RequireDebugTrue',
},
},
'handlers': {
'console': {
'level': 'DEBUG',
'filters': ['require_debug_true'],
'class': 'logging.StreamHandler',
'formatter': 'color'
},
'logdna': {
'level': logging.DEBUG,
'class': 'logdna.LogDNAHandler',
'key': "my_secret_key",
'options': {
# 'app': '<app name>',
# 'env': "alpha",
'index_meta': True,
},
},
},
'loggers': {
'': {
'level': logging.DEBUG,
'handlers': ['logdna'],
'propagate': True,
},
}
}
I am using the above example for Django logging using LogDNA. But when I'm running a Django server, it's getting stuck. For reference I'm using this as a guide.
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from logdna/logdna-cli
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
logdna/logdna-cli#65 · 2 reactions ·
-
SSO login has brokenOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
logdna/logdna-cli#62 · 2 comments · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
logdna/logdna-cli#59 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
logdna/logdna-cli#57 · 1 comment ·
-
CI enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
logdna/logdna-cli#51 · 2 comments · 2 reactions ·
All issues in logdna/logdna-cli
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openlibhums/janeway#5604 ·
Maintainers usually reply within 1 day
-
[BUG] Generic OSC does not initialize OSC client on startup when "Listen for Feedback" is disabledOpen
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
area/statement-execution TS conversion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
scylladb/nodejs-rs-driver#584 ·
Maintainers usually reply within 2 days
-
新讀者走讀回報,照著一篇文章實際操作Opendocumentation good first issue help wanted
Difficulty 1/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 3 days