Skip to content
Snippets Groups Projects
Commit cbe246aa authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

Logical correction in logging name

Previously values of child.parent were generated. This since has been
fixed to parent.child
parent b6b789f1
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,6 @@ class SpecializedLoggerObject(LoggerInterface): ...@@ -59,6 +59,6 @@ class SpecializedLoggerObject(LoggerInterface):
if e.who == '': if e.who == '':
e.who = self.kwargs['who'] e.who = self.kwargs['who']
else: else:
e.who = '%s.%s' % (self.kwargs['who'], e.who) e.who = '%s.%s' % (e.who, self.kwargs['who'])
return e return e
...@@ -77,7 +77,7 @@ class LoggerTest(unittest.TestCase): ...@@ -77,7 +77,7 @@ class LoggerTest(unittest.TestCase):
li_who = li.specialize(who='masters') li_who = li.specialize(who='masters')
li_who.log() li_who.log()
k = li.entries.pop() k = li.entries.pop()
self.assertEquals(k.who, 'masters.hello') self.assertEquals(k.who, 'hello.masters')
li_who.log('') li_who.log('')
k = li.entries.pop() k = li.entries.pop()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment