disable writing to debug.log by default

Fix #1031