Prints debug output if session isn't empty to test problem on travis-ci