diff --git a/dcapi/condor/condor_wu.c b/dcapi/condor/condor_wu.c index a90af9ad5c..aa6517f91e 100644 --- a/dcapi/condor/condor_wu.c +++ b/dcapi/condor/condor_wu.c @@ -305,10 +305,11 @@ _DC_wu_make_client_config(DC_Workunit *wu) g_string_append(fn, CLIENT_CONFIG_NAME); if ((f= fopen(fn->str, "w")) != NULL) { - fprintf(f, "LogLevel = %s\n", - DC_getClientCfgStr(wu->data.client_name, - "LogLevel", - TRUE)); + if (_DC_initClientConfig(wu->data.client_name, f)) + { + fclose(f); + return(DC_ERR_BADPARAM); + } fprintf(f, "LogFile = %s\n", DC_getClientCfgStr(wu->data.client_name, "LogFile",