Protected some log under debug flag