Skip to content

Commit

Permalink
Recover debugging message in celix_properties_load, but lower its o…
Browse files Browse the repository at this point in the history
…utput level during bundle install.
  • Loading branch information
PengZheng committed Dec 12, 2023
1 parent d628c4a commit 4aae7b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/framework/src/bundle_archive.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "celix_file_utils.h"
#include "celix_framework_utils_private.h"
#include "celix_utils_api.h"
#include "celix_log.h"

#include "bundle_archive_private.h"
#include "bundle_revision_private.h"
Expand Down Expand Up @@ -65,6 +66,7 @@ static celix_status_t celix_bundleArchive_storeBundleStateProperties(bundle_arch
celix_properties_t* bundleStateProperties = NULL;
bundleStateProperties = celix_properties_load(archive->savedBundleStatePropertiesPath);
if (bundleStateProperties == NULL) {
celix_framework_logTssErrors(archive->fw->logger, CELIX_LOG_LEVEL_DEBUG);
bundleStateProperties = celix_properties_create();
}
if (bundleStateProperties == NULL) {
Expand Down
1 change: 1 addition & 0 deletions libs/utils/src/properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ void celix_properties_destroy(celix_properties_t* props) {
celix_properties_t* celix_properties_load(const char* filename) {
FILE* file = fopen(filename, "r");
if (file == NULL) {
celix_err_pushf("Cannot open file '%s'", filename);
return NULL;
}
celix_properties_t* props = celix_properties_loadWithStream(file);
Expand Down

0 comments on commit 4aae7b0

Please sign in to comment.