Make that ContextInjector thing jsonifiable.
This commit is contained in:
parent
187b690d73
commit
0b54cd4623
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue