Fix logging error and add Travis badge