On Wed, 2013-03-20 at 07:54 -0700, Romain Slootmaekers wrote:
> > @@ -128,58 +128,74 @@ let handle_sequence ~sync ic oc backend =
> >  
> >    end
> >  
> > -let one_command (ic,oc) (backend:Backend.backend) =
> > +let one_command (ic,oc) (backend:Backend.backend) log_commands =
> > +  let get_string = function
> > +    | None -> ""
> > +    | Some s -> s
> > +  and log_command_f =
> > +    begin
> > +      if log_commands then
> > +        Lwt_log.info_f
> 
> Is this what we want?
> I would think, if the flag is there, we log in debug, else we don't log at all.

No, not debug. The goal is to be able to log commands without putting
the whole node in 'debug' mode.

Ideally one day we'd have all logging in separate sections and
appropriate levels, and some system like
http://docs.python.org/2/library/logging.config.html#configuration-file-format