diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2013-05-03 11:57:58 +0200 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2013-05-03 11:57:58 +0200 |
commit | 6b3d01948443f143af5497d4a8addf870d95b1f3 (patch) | |
tree | 911adf0b0918618248f474416b6d4193c1c23ae4 /src/persistence_client_library_prct_access.c | |
parent | d4955ce50d9e3742103e21d9377b3567399aa9ef (diff) | |
download | persistence-client-library-6b3d01948443f143af5497d4a8addf870d95b1f3.tar.gz |
Added init/deinit library functions; removed library constructor/destructor
Diffstat (limited to 'src/persistence_client_library_prct_access.c')
-rw-r--r-- | src/persistence_client_library_prct_access.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/persistence_client_library_prct_access.c b/src/persistence_client_library_prct_access.c index 1624c29..0aae822 100644 --- a/src/persistence_client_library_prct_access.c +++ b/src/persistence_client_library_prct_access.c @@ -169,7 +169,7 @@ int get_db_context(PersistenceInfo_s* dbContext, const char* resource_id, unsign else { printf("get_db_context - resource_table: no value for key: %s \n", resource_id); - DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("get_db_context => itzam_btree_open => resource_table: no value for key"), DLT_STRING(resource_id) ); + DLT_LOG(gDLTContext, DLT_LOG_WARN, DLT_STRING("get_db_context => itzam_btree_open => resource_table: no value for key:"), DLT_STRING(resource_id) ); rval = EPERS_NOKEYDATA; } } // resource table @@ -201,7 +201,8 @@ int get_db_context(PersistenceInfo_s* dbContext, const char* resource_id, unsign memcpy(dbContext->configKey.customID, "A_CUSTOM_ID", strlen("A_CUSTOM_ID")); memcpy(dbContext->configKey.reponsible, "default", strlen("default")); memcpy(dbContext->configKey.custom_name, "default", strlen("default")); - //printf("get_db_context ==> R E S O U R C E N O T found: %s \n", resource_id); + + DLT_LOG(gDLTContext, DLT_LOG_INFO, DLT_STRING("get_db_context => create resource not in PRCT => key:"), DLT_STRING(resource_id) ); // send create notification rval = pers_send_Notification_Signal(dbKey, &dbContext->context, pclNotifyStatus_created); |