Disable logging unless DEBUG=1 when compiling.