From 5751ddeb6cb9b7f77b68521fae00be0f3ed4127b Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Mon, 24 May 2021 16:50:51 -0400 Subject: [PATCH] Fix messages about dll loading Signed-off-by: 1000TurquoisePogs --- CHANGELOG.md | 5 +++++ c/dataservice.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c997a0e53..70a8228fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Zowe Common C Changelog +## `1.22.0` + +- Enhancement: Add "remoteStorage" pointer to dataservice struct, for accessing high availability remote storage in addition to or alternatively to local storage. +- Bugfix: Dataservice loading did not warn if program control was missing, which is essential, so plugin loading would fail silently in that case. + ## `1.21.0` - Set cookie path to root in order to avoid multiple cookies when browser tries to set path automatically diff --git a/c/dataservice.c b/c/dataservice.c index bfdae3e77..7f6027abc 100644 --- a/c/dataservice.c +++ b/c/dataservice.c @@ -115,7 +115,7 @@ static void *lookupDLLEntryPoint(char *libraryName, char *functionName){ status = fileInfo(libraryName, &info, &returnCode, &reasonCode); if (status == 0) { if (!(info.attributeFlags & BPXYSTAT_ATTR_PROGCTL)) { - zowelog(NULL, LOG_COMP_DATASERVICE, ZOWE_LOG_DEBUG, + zowelog(NULL, LOG_COMP_DATASERVICE, ZOWE_LOG_WARNING, "FAILURE: Dataservice: %s does not have the Program Control attribute this may cause unexpected errors therefore will not be loaded\n", libraryName); } else { @@ -128,6 +128,7 @@ static void *lookupDLLEntryPoint(char *libraryName, char *functionName){ zowelog(NULL, LOG_COMP_DATASERVICE, ZOWE_LOG_DEBUG, "%s.%s could not be found - dlsym error %s\n", libraryName, functionName, dlerror()); } else { zowelog(NULL, LOG_COMP_DATASERVICE, ZOWE_LOG_DEBUG, "%s.%s is at 0x%" PRIxPTR "\n", libraryName, functionName, ep); + zowelog(NULL, LOG_COMP_DATASERVICE, ZOWE_LOG_INFO, "Dataservice: %s loaded.\n", libraryName); } } else { zowelog(NULL, LOG_COMP_DATASERVICE, ZOWE_LOG_DEBUG, "dlopen error for %s - %s\n",libraryName, dlerror());