Make that ContextInjector thing jsonifiable.

This commit is contained in:
Ralph Bean 2014-02-27 15:01:09 +00:00
parent 187b690d73
commit 0b54cd4623

View file

@ -61,6 +61,11 @@ class ContextInjector(logging.Filter):
# This should be impossible.
raise ValueError("Could not find process %r" % mypid)
@classmethod
def __json__(cls):
""" We need to be jsonifiable for "fedmsg-config" """
return {'name': 'ContextInjector'}
current_process = ContextInjector.get_current_process()
current_hostname = socket.gethostname()