Print log correctly