Set debug logging higher if running non-interactively.

Not sure I like this implementation but it works for Travis testing.