Fix --debug handling in the shell

This sets the debug level globally on root logger so that every debug
calls are logged.

Change-Id: Ia8d61f213b2bc6c4bcb1038e7ff6ac0104581b4b
Closes-Bug: #1259210
Merge "Fix --debug handling in the shell"