- CC: Read the config file before setting the max file sizes.

client/
        main.C

svn path=/trunk/boinc/; revision=15588
This commit is contained in:
Rom Walton 2008-07-10 21:49:24 +00:00
parent e18b7c5c25
commit dddeba4c77
2 changed files with 13 additions and 4 deletions

View File

@ -5638,3 +5638,9 @@ Charlie 10 July 2008
clientgui/
BOINCListCtrl.h
Rom 10 July 2008
- CC: Read the config file before setting the max file sizes.
client/
main.C

View File

@ -302,15 +302,18 @@ static void init_core_client(int argc, char** argv) {
}
diagnostics_init(flags, "stdoutdae", "stderrdae");
diagnostics_set_max_file_sizes(
config.max_stdout_file_size, config.max_stderr_file_size
);
// Read config and parse the commandline after initializing the
// diagnostics framework.
read_config_file();
// Win32 - detach from console if requested
// Set the max file sizes of the logs based on user preferences.
//
diagnostics_set_max_file_sizes(
config.max_stdout_file_size, config.max_stderr_file_size
);
// Win32 - detach from console if requested
#ifdef _WIN32
if (gstate.detach_console) {
FreeConsole();