Skip to content

Commit 69fea4f

Browse files
committed
filter output moved to end
1 parent 8702c2c commit 69fea4f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Source/IO/Network.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,16 +442,16 @@ namespace IO
442442
{
443443
std::stringstream ss;
444444
ss << "UDP: open socket for host: " << host << ", port: " << port;
445-
std::string filter_str = filter.Get();
446-
if (!filter_str.empty())
447-
ss << ", " << filter_str;
448445
ss << ", msgformat: " << Util::Convert::toString(fmt);
449446
if (broadcast)
450447
ss << ", broadcast: true";
451448
if (reset > 0)
452449
ss << ", reset: " << reset;
453450
if (!uuid.empty())
454451
ss << ", uuid: " << uuid;
452+
std::string filter_str = filter.Get();
453+
if (!filter_str.empty())
454+
ss << ", " << filter_str;
455455

456456
Info() << ss.str();
457457

@@ -711,15 +711,16 @@ namespace IO
711711
std::stringstream ss;
712712

713713
ss << "TCP feed: open socket for host: " << host << ", port: " << port;
714-
std::string filter_str = filter.Get();
715-
if (!filter_str.empty())
716-
ss << ", " << filter_str;
717714
ss << ", persist: " << Util::Convert::toString(persistent);
718715
ss << ", keep_alive: " << Util::Convert::toString(keep_alive);
719716
if (!uuid.empty())
720717
ss << ", uuid: " << uuid;
721718

722-
ss << ", msgformat: " << Util::Convert::toString(fmt) << ", status: ";
719+
ss << ", msgformat: " << Util::Convert::toString(fmt);
720+
std::string filter_str = filter.Get();
721+
if (!filter_str.empty())
722+
ss << ", " << filter_str;
723+
ss << ", status: ";
723724

724725
// Set up TCP connection
725726
tcp.setValue("HOST", host);
@@ -931,10 +932,10 @@ namespace IO
931932
{
932933
std::stringstream ss;
933934
ss << Util::Convert::toString(Protocol) << " feed: " << session->getHost() << ", port: " << session->getPort();
935+
ss << ", msgformat: " << Util::Convert::toString(fmt);
934936
std::string filter_str = filter.Get();
935937
if (!filter_str.empty())
936938
ss << ", " << filter_str;
937-
ss << ", msgformat: " << Util::Convert::toString(fmt);
938939
tcp.setValue("PERSISTENT", "on");
939940

940941
switch (Protocol)

0 commit comments

Comments
 (0)