diff --git a/paddlehub/server/git_source.py b/paddlehub/server/git_source.py index a41c3c5f932a2765b20d9b8a0017b04f7612606c..bc416647c95a24edabf95ea456cfb3fcc0d002fd 100644 --- a/paddlehub/server/git_source.py +++ b/paddlehub/server/git_source.py @@ -61,7 +61,11 @@ class GitSource(object): # reload modules self.load_hub_modules() except: - log.logger.warning('An error occurred while checkout {}'.format(self.path)) + msg = traceback.format_exc() + file = utils.record(msg) + log.logger.warning( + 'An error occurred while checkout {}. Detailed error information can be found in the {}.'.format( + self.path, file)) def update(self): try: