logger logs even with critical errors