Skip to content

Commit 20ca128

Browse files
authored
Accept missing Data[Input,Output]Director in json file (#4005)
1 parent 82836bb commit 20ca128

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Framework/Core/src/DataInputDirector.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ bool DataInputDirector::readJsonDocument(Document* jsonDoc)
207207
itemName = "InputDirector";
208208
const Value& didirItem = (*jsonDoc)[itemName];
209209
if (!didirItem.IsObject()) {
210-
LOGP(ERROR, "Check the JSON document! Couldn't find an \"{}\" object!", itemName);
211-
return false;
210+
LOGP(INFO, "No \"{}\" object found in the JSON document!", itemName);
211+
return true;
212212
}
213213

214214
// now read various items

Framework/Core/src/DataOutputDirector.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ std::tuple<std::string, std::string, int> DataOutputDirector::readJsonDocument(D
265265
itemName = "OutputDirector";
266266
const Value& dodirItem = (*jsonDocument)[itemName];
267267
if (!dodirItem.IsObject()) {
268-
LOGP(ERROR, "Check the JSON document! Couldn't find an \"{}\" object!", itemName);
268+
LOGP(INFO, "No \"{}\" object found in the JSON document!", itemName);
269269
return memptyanswer;
270270
}
271271

0 commit comments

Comments
 (0)