# HG changeset patch # User Marcin Kuzminski # Date 2018-07-23 12:50:15 # Node ID 76c75f2d3bba2053fbe0ad4fa49fcfdfb2820b49 # Parent 5eed39e5099a18dfacdecd6110cd5e93e27c99f5 exceptions: don't log error the lookup method errors. This happens so often we spam the logs with errors , while it's simply commit not found. Other backends don't report this anyway exception HG. diff --git a/rhodecode/lib/vcs/exceptions.py b/rhodecode/lib/vcs/exceptions.py --- a/rhodecode/lib/vcs/exceptions.py +++ b/rhodecode/lib/vcs/exceptions.py @@ -205,7 +205,7 @@ def map_vcs_exceptions(func): args = e.args else: args = [__traceback_info__ or 'unhandledException'] - if __traceback_info__ and kind != 'unhandled': + if __traceback_info__ and kind not in ['unhandled', 'lookup']: # for other than unhandled errors also log the traceback # can be usefull for debugging log.error(__traceback_info__)