bugfix with logger in Rails4