softhsm/softhsm-v2.2.0-no-stderr.patch
2017-06-27 08:07:09 +02:00

37 lines
1.3 KiB
Diff

diff --git a/src/lib/SoftHSM.cpp b/src/lib/SoftHSM.cpp
index 2e5504a..b857418 100644
--- a/src/lib/SoftHSM.cpp
+++ b/src/lib/SoftHSM.cpp
@@ -474,7 +474,7 @@ CK_RV SoftHSM::C_Initialize(CK_VOID_PTR pInitArgs)
objectStore = new ObjectStore(Configuration::i()->getString("directories.tokendir", DEFAULT_TOKENDIR));
if (!objectStore->isValid())
{
- ERROR_MSG("Could not load the object store");
+ WARNING_MSG("Could not load the object store");
delete objectStore;
objectStore = NULL;
delete sessionObjectStore;
diff --git a/src/lib/common/softhsm2.conf.in b/src/lib/common/softhsm2.conf.in
index b208cb6..bd0a60b 100644
--- a/src/lib/common/softhsm2.conf.in
+++ b/src/lib/common/softhsm2.conf.in
@@ -4,4 +4,4 @@ directories.tokendir = @softhsmtokendir@
objectstore.backend = file
# ERROR, WARNING, INFO, DEBUG
-log.level = INFO
+log.level = ERROR
diff --git a/src/lib/object_store/ObjectStore.cpp b/src/lib/object_store/ObjectStore.cpp
index 171cede..3cde15f 100644
--- a/src/lib/object_store/ObjectStore.cpp
+++ b/src/lib/object_store/ObjectStore.cpp
@@ -56,7 +56,7 @@ ObjectStore::ObjectStore(std::string inStorePath)
if (!storeDir.isValid())
{
- ERROR_MSG("Failed to enumerate object store in %s", storePath.c_str());
+ WARNING_MSG("Failed to enumerate object store in %s", storePath.c_str());
return;
}