I think that I would prefer to use the 'warnings' module.