Would the logger's WARNING facility be more appropriate here?