Turn off debug log for build. Turn on log for test.

Signed-off-by: onevcat <onevcat@gmail.com>