[virt-tools-list] [virt-bootstrap] [PATCH v3 02/12] Specify logger name when executed directly
Cedric Bosdonnat
cbosdonnat at suse.com
Thu Jul 20 12:23:10 UTC 2017
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())
More information about the virt-tools-list
mailing list