Unify all the usage of LOG and DBG