[CRIU] [PATCH 0/3] p.haul: rework logging
Nikita Spiridonov
nspiridonov at odin.com
Thu Oct 1 04:33:53 PDT 2015
On Thu, 2015-10-01 at 15:34 +0300, Pavel Emelyanov wrote:
> On 09/30/2015 07:48 PM, Nikita Spiridonov wrote:
> > Replace manual prints with logging library usage, add --log-file option
> > for both p.haul and p.haul-service needed to specify log name.
>
> Applied, thanks.
>
> Is this logging engine possible to log into the screen?
>
> -- Pavel
>
Yes, see code below, in the case --log-file option not explicitly
specified args.log_file is None, and in this case logging goes to
screen.
logging.basicConfig(filename=args.log_file, filemode="w",
More information about the CRIU
mailing list