|
@@ -683,9 +683,11 @@ UA_ClientConfig_setDefault(UA_ClientConfig *config) {
|
|
config->timeout = 5000;
|
|
config->timeout = 5000;
|
|
config->secureChannelLifeTime = 10 * 60 * 1000; /* 10 minutes */
|
|
config->secureChannelLifeTime = 10 * 60 * 1000; /* 10 minutes */
|
|
|
|
|
|
- config->logger.log = UA_Log_Stdout_log;
|
|
|
|
- config->logger.context = NULL;
|
|
|
|
- config->logger.clear = UA_Log_Stdout_clear;
|
|
|
|
|
|
+ if(!config->logger.log) {
|
|
|
|
+ config->logger.log = UA_Log_Stdout_log;
|
|
|
|
+ config->logger.context = NULL;
|
|
|
|
+ config->logger.clear = UA_Log_Stdout_clear;
|
|
|
|
+ }
|
|
|
|
|
|
config->localConnectionConfig = UA_ConnectionConfig_default;
|
|
config->localConnectionConfig = UA_ConnectionConfig_default;
|
|
|
|
|