switch log mode to debug