From 7ee688288430c156549c6f9f35bfecee8ba9db3a Mon Sep 17 00:00:00 2001 From: robk-tahoe Date: Thu, 16 Oct 2008 18:46:50 -0700 Subject: [PATCH] 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 --- contrib/fuse/impl_c/blackmatch.py | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) 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 -- 2.45.2