Created by: zhiqiu
PR types
Others
PR changes
Others
Describe
Replace some logging.warn()
with warings.warn()
As stated in official doc
warnings.warn()
in library code if the issue is avoidable and the client application should be modified to eliminate the warninglogging.warning()
if there is nothing the client application can do about the situation, but the event should still be noted
Plus, repetitions of a particular warning for the same source location are typically suppressed when using warnings.warn()
.