fix for debug log where warn should be used