rails/rails — Issue #4760: Rails.logger... not displaying text in the log
Author: mledom
Created: 2012-01-30 16:00:19+00:00
State: open

The two blank lines in the data below are where I'm calling Rails.logger.debug { "print this message"} . Anytime I use the logger in code I get an a blank line. Is anyone else experiencing this. Our team is using 1.9.2 & 1.9.3 with Rails 3.2. This was not happening with Rails 3.1.3

[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `images` (`agency_id`, `aspect_ratio`, `client_id`, `color_depth`, `created_at`, `description`, `file`, `file_size`, `file_type`, `last_used`, `name`, `resolution`, `type`, `updated_at`, `url`, `user_id`) VALUES (3, '26:5', 3, 8, '2012-01-30 15:56:23', 'Image File Name: logo.png\nFile Type: image/png\nResolution: 390x75\nColor Depth: 8\nAspect Ratio: 26:5\nFile Size: 27.242KB', 'logo.png', 27242, 'image/png', NULL, 'logo', '390x75', 'CreativeImage', '2012-01-30 15:56:23', NULL, 3)[0m

[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `versions` WHERE `versions`.`item_id` = 3 AND `versions`.`item_type` = 'AdCreative'
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m

[1m[35m (1.1ms)[0m ROLLBACK