Comment 1 for bug 2012944

Revision history for this message
Miguel Lavalle (minsel) wrote :

The script neutron-remove-duplicated-port-bindings gets a logger here https://opendev.org/openstack/neutron/src/branch/master/neutron/cmd/remove_duplicated_port_bindings.py#L27, which calls oslo.log which in turn calls Python's logging facility here: https://github.com/openstack/oslo.log/blob/master/oslo_log/log.py#L507. The default Python logging level is WARNING. So, yes, since the code logs at INFO level, nothing gets logged.

We should call https://opendev.org/openstack/neutron/src/branch/master/neutron/common/config.py#L111 to initialize logging, like in for example https://opendev.org/openstack/neutron/src/branch/master/neutron/cmd/netns_cleanup.py#L271. This calls oslo.log setup which sets logging level at INFO level by default: https://github.com/openstack/oslo.log/blob/master/oslo_log/log.py#L352