Sorry for the delay, Roger, but your post was in the Articles section of the forum.
I may take a while to be discovered there as that section sees little action these days.
You may want to consider using the
logging module.
Or you may want to catch the warning in your code and raise your own error, in order to force it to that level.
Post a snippet of code that raises the waring and I'll give an example of how to do this.