         command : required
         cb      : undefined
 
+    t0 = misc.walltime()
     misc_node.execute_code
         command     : "ssh"
         args        : ["storage@#{opts.host}", opts.command]
         err_on_exit : true
-        cb          : opts.cb
+        cb          : (err, output) ->
+            winston.debug("#{misc.walltime(t0)} seconds to execute '#{opts.command}' on #{opts.host}")
+            opts.cb?(err)
 
 # Make a snapshot of a given project on a given host and record
 # this in the database.

    opts.cb?()



            cb(err)
        else
            new cassandra.Salvus
                hosts    : ['10.1.3.2']  # TODO
                keyspace : 'salvus'                  # TODO
                username : 'hub'
                consistency : 1
                password : password.toString().trim()
                cb       : (err, db) ->
                    database = db
                    cb(err)
# TODO
connect_to_database (err) ->
    if err
        winston.info("Error connecting to database -- ", err)
    else
        winston.info("Connected to database")
exports.db = () -> database # TODO -- for testing

filesystem = (project_id) -> "projects/#{project_id}"
mountpoint = (project_id) -> "/projects/#{project_id}"
