fixed rails 3 logger problem