logging put errors instead of throwing exception