]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fuse/blackmatch: log exception in server startup
authorrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 17 Oct 2008 01:46:50 +0000 (18:46 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 17 Oct 2008 01:46:50 +0000 (18:46 -0700)
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

index 3d10d9213ec3a5fc8eee2fda92f3243213e49e64..b167c71387fff56ad4a441e5f2267f30acf466ac 100644 (file)
@@ -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