Re: [virt-bootstrap] [PATCH v3 02/12] Specify logger name when executed directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2017-07-20 at 12:29 +0100, Radostin Stoyanov wrote:
> ---
>  src/virtBootstrap/virt_bootstrap.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/virtBootstrap/virt_bootstrap.py b/src/virtBootstrap/virt_bootstrap.py
> index c66cc92..fe27398 100755
> --- a/src/virtBootstrap/virt_bootstrap.py
> +++ b/src/virtBootstrap/virt_bootstrap.py
> @@ -215,4 +215,5 @@ def main():
>  
>  
>  if __name__ == '__main__':
> +    logger = logging.getLogger('virt_bootstrap')

Couldn't that just be the default instead of getLogger(__name__)?

--
Cedric

>      sys.exit(main())

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux