Skip to content

Commit

Permalink
There is no default log level for jm callbacks. Set it to jm_log_leve…
Browse files Browse the repository at this point in the history
…l_debug while initiaizing.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12618 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Aug 21, 2012
1 parent 1c7cc9f commit d64f975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/runtime/FMIImpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ char* FMIImpl__importFMU(const char* file_name, const char* working_directory)
callbacks.realloc = realloc;
callbacks.free = free;
callbacks.logger = importlogger;
callbacks.log_level = jm_log_level_debug;
callbacks.context = 0;
// FMI callback functions
fmi1_callback_functions_t callback_functions;
Expand Down
1 change: 1 addition & 0 deletions Compiler/runtime/FMIWrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ void* fmi_import_allocate_context_OMC()
callbacks.realloc = realloc;
callbacks.free = free;
callbacks.logger = importlogger;
callbacks.log_level = jm_log_level_debug;
callbacks.context = 0;
}
fmi_import_context_t* context = fmi_import_allocate_context(&callbacks);
Expand Down

0 comments on commit d64f975

Please sign in to comment.