Only output log in DEBUG mode