tchandy/octopus — Issue #64: Logger prints the shard used on a new line below SQL statement
Author: pmatsinopoulos
Created: 2012-01-03 09:50:47+00:00
State: open

It seems that Octopus Logger prints the shard used on a new line, below the SQL statement. This is one of my outputs while doing development:

```SQL (0.7ms) describe `users_cases_list_selected_session_attributes`
Shard: master - SQL (1.2ms) SHOW TABLES
Shard: master - User Load (1.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
Shard: master - SQL (1.2ms) SHOW TABLES
Shard: master - Chart Load (0.6ms) SELECT `charts`.* FROM `charts` WHERE `charts`.`id` = 13 LIMIT 1
Shard: slave1 -
```

That was really confusing to me at the beginning. I thought that Octopus didn't write to the correct shards. But I investigated the logs on MySQL servers (master and slave) and verified that it worked ok. So, the problem is with Logger.

Note: I am using ActiveRecord 3.0.9