Commits

Yaron Minsky committed 31415b8

removed logging from client

  • Participants
  • Parent commits 895887c

Comments (0)

Files changed (2)

     (fun host port sexp () -> dump ~host ~port ~sexp)
 
 let () =
-  Log.Global.set_output [ Log.Output.file `Text ~filename:("client.log") ];
   Command.run
     (Command.group ~summary:"Utilities for interacting with message broker"
        [ "publish"  , pub_cmd
   )
 
 let with_rpc_conn f ~host ~port =
-  Log.Global.info "starting RPC connection to %s:%d" host port;
   Tcp.with_connection
     (Tcp.to_host_and_port host port)
     ~timeout:(sec 1.)
     (fun r w ->
-      Log.Global.info "Connection established";
       Rpc.Connection.create r w ~connection_state:()
       >>= function
-      | Error exn ->
-        Log.Global.info "Received error";
-        raise exn
-      | Ok conn ->
-        Log.Global.info "Calling handling function";
-        f conn
+      | Error exn -> raise exn
+      | Ok conn   -> f conn
     )
 
 let start_server ~env ?(stop=Deferred.never ()) ~implementations ~port () =