File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ static __TLS int was_called_from_umfPool = 0;
107107/*****************************************************************************/
108108
109109void proxy_lib_create_common (void ) {
110+ util_log_init ();
110111 umf_os_memory_provider_params_t os_params =
111112 umfOsMemoryProviderParamsDefault ();
112113 umf_result_t umf_result ;
Original file line number Diff line number Diff line change @@ -254,10 +254,10 @@ void util_log_init(void) {
254254
255255 memcpy (file , arg , len );
256256 file [len ] = '\0' ;
257- loggerConfig .output = fopen (file , "w+ " );
257+ loggerConfig .output = fopen (file , "a " );
258258 if (!loggerConfig .output ) {
259259 loggerConfig .output = stderr ;
260- LOG_ERR ("Cannot open output file %s - logging disabled" , file );
260+ LOG_PERR ("Cannot open output file %s - logging disabled" , file );
261261 loggerConfig .output = NULL ;
262262 return ;
263263 }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ int fopen_count = 0;
1414FILE *mock_fopen (const char *filename, const char *mode) {
1515 fopen_count++;
1616 EXPECT_STREQ (filename, expected_filename.c_str ());
17- EXPECT_STREQ (mode, " w+ " );
17+ EXPECT_STREQ (mode, " a " );
1818 return MOCK_FILE_PTR;
1919}
2020
You can’t perform that action at this time.
0 commit comments