Log temp site events under different name

This commit is contained in:
shortcutme 2019-12-17 14:34:53 +01:00
parent e91fb90a45
commit d062f01127
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -221,6 +221,7 @@ def site_temp(request):
del ContentDb.content_dbs[db_path]
gevent.killall([obj for obj in gc.get_objects() if isinstance(obj, gevent.Greenlet) and obj not in threads_before])
request.addfinalizer(cleanup)
site_temp.log = logging.getLogger("Temp:%s" % site_temp.address_short)
return site_temp