You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
The logger.warning(e) happens in a loop and this can try to send a lot of logs.
Traceback:
File "[...]/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "[...]/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "[...]/local/lib/python2.7/site-packages/newrelic-2.40.0.34/newrelic/hooks/component_djangorestframework.py", line 8, in _nr_wrapper_APIView_dispatch_
return wrapped(*args, **kwargs)
File "[...]/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "[...]/local/lib/python2.7/site-packages/rest_framework/views.py", line 400, in dispatch
response = self.handle_exception(exc)
File "[...]/local/lib/python2.7/site-packages/rest_framework/views.py", line 397, in dispatch
response = handler(request, *args, **kwargs)
File "./api/views/filemanager.py", line 49, in get
return Response(serializer.list_files_in_folder(path, images_only), 200)
File "./api/serializers/filemanager.py", line 156, in list_files_in_folder
logger.warning(e)
File "/usr/lib/python2.7/logging/__init__.py", line 1152, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python2.7/logging/__init__.py", line 1258, in _log
self.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1268, in handle
self.callHandlers(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1308, in callHandlers
hdlr.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 748, in handle
self.emit(record)
File "[...]/local/lib/python2.7/site-packages/logentries/utils.py", line 124, in emit
self._thread.start()
File "/usr/lib/python2.7/threading.py", line 494, in start
_start_new_thread(self.__bootstrap, ())
error: can't start new thread
Still having this issue with Celery workers - see my comment in #3 - are there any plans to address it? I contacted support, but they just told me it's not a priority.
Thanks @StephenHynes7, I will take a look. We switched from using this to just using syslog though, so not as critical for us anymore. Still appreciate the fix :)
Activity
StephenHynes7 commentedon Feb 24, 2015
Can you try the latest version? https://pypi.python.org/pypi/Logentries
rsaftoiu commentedon May 11, 2015
Hi guys,
Still having this issue with Celery workers - see my comment in #3 - are there any plans to address it? I contacted support, but they just told me it's not a priority.
StephenHynes7 commentedon May 11, 2015
@rsaftoiu hoping to have a branch hopefully with a fix for this soon. Ill let you know when it's available
rsaftoiu commentedon May 11, 2015
@StephenHynes7 thanks, appreciate it!
StephenHynes7 commentedon May 14, 2015
@rsaftoiu Have a fork here of this https://github.com/StephenHynes7/le_python/blob/cddf42285cb59e88afeb2ce16e7de6867ff3b5a4/logentries/utils.py. We will be doing our own tests on this aswell
rsaftoiu commentedon May 14, 2015
Thanks @StephenHynes7, I will take a look. We switched from using this to just using syslog though, so not as critical for us anymore. Still appreciate the fix :)
r35krag0th commentedon Feb 17, 2016
Necro bumping to get this pushed upstream to PyPi so I don't have to maintain a copy.
jrhenke commentedon Mar 8, 2016
^^ Seconded. Right now we have to manually apply this patch after installing LE with pip.
drgarcia1986 commentedon Apr 5, 2016
Maybe the PR #46 solve this issue
00derek commentedon Oct 13, 2016
hi, still seeing issue after PR #46 in celery workers. Logentries is upgraded to version 0.17 as per advised.