Fix potential undefined variable.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Allow enabling and disabling of logging.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Merge branch 'master' of github.com:jasonlewis/basset