Made debug.log purge at start if larger than 10 MB. Use -shrinkdebugfile=0 to override. This is exactly as in Bitcoin.