/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/smart/server.py

  • Committer: Jonathan Riddell
  • Date: 2011-05-24 11:54:40 UTC
  • mto: This revision was merged to the branch mainline in revision 5927.
  • Revision ID: jriddell@canonical.com-20110524115440-6bf4fg336gfdzvlp
remove debugging

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
389
389
    bzr_server = BzrServerFactory()
390
390
    try:
391
391
        bzr_server.set_up(transport, host, port, inet)
392
 
        trace.note("starting server")
393
392
        bzr_server.smart_server.serve()
394
393
    except:
395
 
        #if hook, call it here with exception, if not handled then raise it again
396
 
        trace.note(str(sys.exc_info()))
397
 
        trace.note("oops an exception occurred")
398
394
        hook_caught_exception = False
399
395
        for hook in SmartTCPServer.hooks['server_exception']:
400
396
            hook_caught_exception = hook(sys.exc_info())
402
398
            raise
403
399
    finally:
404
400
        bzr_server.tear_down()
405