[openstack-dev] [All] LOG.warning/LOG.warn

Joe Gordon joe.gordon0 at gmail.com
Mon Aug 18 20:58:48 UTC 2014


On Sun, Aug 17, 2014 at 9:24 AM, Jay Bryant <jsbryant at electronicjungle.net>
wrote:

> +2
>
> I prefer the LOG.warning format and support that given the documentation
> you shared.
>
> If there is agreement I would create a hacking check.
>

I think a better approach is to just not care which i used here. IMHO
mixing up LOG.warn and LOG.warning doesn't hurt readability in any
meaningful way. And not caring will result in less churn for very little
benefit.


>  Jay
> On Aug 17, 2014 1:28 AM, "Gary Kotton" <gkotton at vmware.com> wrote:
>
>>  Hi,
>> Over the last few weeks I have seen a number of patches where LOG.warn is
>> replacing LOG.warning. I think that if we do something it should be the
>> opposite as warning is the documented one in python 2 and 3
>> https://docs.python.org/3/howto/logging.html.
>> Any thoughts?
>> Thanks
>> Gary
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140818/df1bbb5a/attachment.html>


More information about the OpenStack-dev mailing list