#1505 Deprecation warnings not easily found in kojid
Opened 4 years ago by mikem. Modified 4 years ago

Discovered by @mfilip during testing for PR #1456.

The koji.util.deprecated() function uses Python's warnings module to warn about the deprecation. This module outputs to stderr by default, but under normal circumstances kojid's stderr is not captured. Only messages in the logging system go do kojid.log.

The warning can be seen if kojid is run in the foreground with --fg. Also, technically, systemd runs kojid with --fg, so the output can be seen with journalctl, e.g. journalctl -u kojid -n 10000 |grep -i deprecation.


I'm not sure what we should do about this. Perhaps the systemd logs are enough and this can be closed, but most folks look at kojid.log primarily.

It might be as easy as calling logging.captureWarnings(True) in kojid during setup, but casual experiment did not work as expected.

Metadata Update from @mikem:
- Custom field Size adjusted to None

4 years ago

Metadata Update from @mikem:
- Issue tagged with: discussion

4 years ago

Login to comment on this ticket.

Metadata