Skip to content

Commit ccf73dc

Browse files
authored
Fix ProbingETL toJson to serialize underlying source states (#325)
Fixes #323
1 parent 3de421c commit ccf73dc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/etl/ProbingETLSource.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,16 @@ boost::json::object
6969
ProbingETLSource::toJson() const
7070
{
7171
if (!currentSrc_)
72-
return {};
72+
{
73+
boost::json::object sourcesJson = {
74+
{"ws", plainSrc_->toJson()},
75+
{"wss", sslSrc_->toJson()},
76+
};
77+
78+
return {
79+
{"probing", sourcesJson},
80+
};
81+
}
7382
return currentSrc_->toJson();
7483
}
7584

0 commit comments

Comments
 (0)