Use standard-library logging to record errors which would otherwise be discarded