From: robk-tahoe Date: Fri, 17 Oct 2008 01:46:50 +0000 (-0700) Subject: fuse/blackmatch: log exception in server startup X-Git-Url: https://git.rkrishnan.org/module-simplejson.tests.html?a=commitdiff_plain;h=7ee688288430c156549c6f9f35bfecee8ba9db3a;p=tahoe-lafs%2Ftahoe-lafs.git fuse/blackmatch: log exception in server startup humphf. my build runs the fuse stuff fine, but the build from the buildslave doesn't seem to start up properly. hopefully this will elicit some useful info --- diff --git a/contrib/fuse/impl_c/blackmatch.py b/contrib/fuse/impl_c/blackmatch.py index 3d10d921..b167c713 100644 --- a/contrib/fuse/impl_c/blackmatch.py +++ b/contrib/fuse/impl_c/blackmatch.py @@ -1497,18 +1497,21 @@ def main(argv): log('daemonizing') daemonize() - cache_timeout = float(config['cache-timeout']) - tfs = TFS(nodedir, nodeurl, root_uri, cache_timeout) - #print tfs.pprint() - - # make tfs instance accesible to print_tree() for dbg - _tfs = tfs - - log('launching tfs server') - tfuse = TahoeFuseBase(tfs) - tfs_server = TFSServer(socket_path, tfuse) - tfs_server.run() - log('tfs server ran, exiting') + try: + cache_timeout = float(config['cache-timeout']) + tfs = TFS(nodedir, nodeurl, root_uri, cache_timeout) + #print tfs.pprint() + + # make tfs instance accesible to print_tree() for dbg + _tfs = tfs + + log('launching tfs server') + tfuse = TahoeFuseBase(tfs) + tfs_server = TFSServer(socket_path, tfuse) + tfs_server.run() + log('tfs server ran, exiting') + except: + log('exception: ' + traceback.format_exc()) # # Client