Hm... Is it because you want a totally silent operation?

I have it this way because the logger is not set up before the config is
being applied. So these will appear as config lines only to console and not
to the log file itself which can be confusing.

On Mon, Aug 17, 2015 at 2:25 PM, mwilkins <[email protected]> wrote:

>
> Hi,
>
> Any chance you could apply this patch?  It stops the printing of the
> four lines of information, rather logging.info is used.  So if you
> don't want output you can set the log level and not pipe stdout to
> /dev/null.
>
> Thanks
>
> --- state.py.orig       2015-08-17 20:51:21.076719747 +1200
> +++ state.py    2015-08-17 20:51:24.684827243 +1200
> @@ -70,9 +70,9 @@
>          self._migrate_config_if_reqd(self.confi_curr_ver)
>
>          try:
> -            print 'Applying base config from file %s...' % self.confn
> +            logging.info('Applying base config from file %s...' %
> self.confn)
>              confi = open(self.confn, "r")
> -            print 'Applying base config from file %s...done' % self.confn
> +            logging.info('Applying base config from file %s...done' %
> self.confn)
>          except IOError, e:
>              print 'Error! Could not Open file (%s): %s' % (self.confn, e)
>              raise
> @@ -86,9 +86,9 @@
>          stc = demjson.decode(confi.read())
>          sts = demjson.decode(statei.read())
>
> -        print 'Applying user customizations from file %s...' % self.confpy
> +        logging.info('Applying user customizations from file %s...' %
> self.confpy)
>          self._customize_config(self.confpy, stc)
> -        print 'Applying user customizations from file %s...done' %
> self.confpy
> +        logging.info('Applying user customizations from file %s...done'
> % self.confpy)
>
>          # #  A sample profile is given in the initial distribution, that
> should
>          # #  not be written back to the file. Do the needful.
>
> Matt
>
> --
> You received this message because you are subscribed to the Google Groups
> "ASynK Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send an email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/asynk/20150817085528.GA17491%40stoker.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ASynK Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/asynk/CAFkt3UP_C05rk4C26cej%2Bmc-%3Ds7f4sySGMrFF7SKp%2BosKgdA6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to