logger improvement

The logger could have had a null pointer exception. This has now been removed.

Signed-off-by: Aaron Rosenzweig <aaron@chatnbike.com>