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;
107
107
/*****************************************************************************/
108
108
109
109
void proxy_lib_create_common (void ) {
110
+ util_log_init ();
110
111
umf_os_memory_provider_params_t os_params =
111
112
umfOsMemoryProviderParamsDefault ();
112
113
umf_result_t umf_result ;
Original file line number Diff line number Diff line change @@ -254,10 +254,10 @@ void util_log_init(void) {
254
254
255
255
memcpy (file , arg , len );
256
256
file [len ] = '\0' ;
257
- loggerConfig .output = fopen (file , "w+ " );
257
+ loggerConfig .output = fopen (file , "a " );
258
258
if (!loggerConfig .output ) {
259
259
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 );
261
261
loggerConfig .output = NULL ;
262
262
return ;
263
263
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ int fopen_count = 0;
14
14
FILE *mock_fopen (const char *filename, const char *mode) {
15
15
fopen_count++;
16
16
EXPECT_STREQ (filename, expected_filename.c_str ());
17
- EXPECT_STREQ (mode, " w+ " );
17
+ EXPECT_STREQ (mode, " a " );
18
18
return MOCK_FILE_PTR;
19
19
}
20
20
You can’t perform that action at this time.
0 commit comments