Skip to content

Commit

Permalink
log the final result
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwlouse committed Jun 25, 2015
1 parent e7b1d1f commit c21a69c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sacred/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def _stop_time(self):
return elapsed_time

def _emit_completed(self, result):
if result is not None:
self.logger.info('Result: {}'.format(result))
elapsed_time = self._stop_time()
self.logger.info('Completed after %s' % elapsed_time)
for observer in self._observers:
Expand Down
3 changes: 2 additions & 1 deletion tests/dependency_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# import tests.foo.bar


def some_func(): pass
def some_func():
pass

ignore_this = 17
2 changes: 1 addition & 1 deletion tests/test_config/test_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def onlykwrgs(**kwargs):
kwarg_list = [{}, {}, {'a': 1, 'b': 'fo', 'c': 9}, {'c': 3}, {}, {}, {}, {}]


class SomeClass:
class SomeClass(object):
def bla(self, a, b, c):
return a, b, c

Expand Down

0 comments on commit c21a69c

Please sign in to comment.