~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/protocol.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-02 07:22:05 UTC
  • mfrom: (2621.3.3 smart-server-logging)
  • Revision ID: pqm@pqm.ubuntu.com-20070802072205-gjk1eev6rlw7ght8
(Andrew Bennetts) Log errors from the smart server in the trace file, to make debugging test failures (and live failures!) easier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from bzrlib import debug
25
25
from bzrlib import errors
26
26
from bzrlib.smart import request
27
 
from bzrlib.trace import mutter
 
27
from bzrlib.trace import log_exception_quietly, mutter
28
28
 
29
29
 
30
30
# Protocol version strings.  These are sent as prefixes of bzr requests and
110
110
                raise
111
111
            except Exception, exception:
112
112
                # everything else: pass to client, flush, and quit
 
113
                log_exception_quietly()
113
114
                self._send_response(request.FailedSmartServerResponse(
114
115
                    ('error', str(exception))))
115
116
                return