Merge remote-tracking branch 'origin/topic/dnthayer/ticket1616'

I changed the patch slightly - now debug.log is only created, if a debug
stream is enabled.

BIT-1616 #merged

* origin/topic/dnthayer/ticket1616:
  Don't create debug.log immediately upon startup
This commit is contained in:
Johanna Amann 2016-06-07 11:07:29 -07:00
commit b2371752e4
5 changed files with 25 additions and 12 deletions

View file

@ -754,7 +754,10 @@ int main(int argc, char** argv)
#ifdef DEBUG
if ( debug_streams )
{
debug_logger.EnableStreams(debug_streams);
debug_logger.OpenDebugLog("debug");
}
#endif
init_random_seed(seed, (seed_load_file && *seed_load_file ? seed_load_file : 0) , seed_save_file);