fixed logger in error example