Skip to content

Commit

Permalink
Fixed set journal handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Jan 2, 2015
1 parent 87f9a14 commit 9598eec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/openprocurement/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@

def set_journal_handler(event):
params = {'PARAMS': str(dict(event.request.params))}
for i, j in event.request.matchdict.items():
params[i.upper()] = j
if event.request.matchdict:
for i, j in event.request.matchdict.items():
params[i.upper()] = j
LOGGER.addHandler(JournalHandler(**params))


Expand Down

0 comments on commit 9598eec

Please sign in to comment.