Skip to content

Commit a485b32

Browse files
KyllianAubryGitHub Enterprise
authored andcommitted
SKA-888: remove duplicate log (#146)
1 parent e3f4f53 commit a485b32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eth/demos/IcmpEchoDevice/SilKitDemoEthernetIcmpEchoDevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ int main(int argc, char** argv)
7070
auto participantConfiguration =
7171
SilKit::Config::ParticipantConfigurationFromString(participantConfigurationString);
7272

73-
std::cout << "Creating participant '" << participantName << "' at " << registryURI << std::endl;
7473
auto participant = SilKit::CreateParticipant(participantConfiguration, participantName, registryURI);
7574

76-
std::cout << "Creating ethernet controller '" << ethernetControllerName << "'" << std::endl;
75+
auto logger = participant->GetLogger();
76+
logger->Info("Creating ethernet controller '" + ethernetControllerName + "'");
7777
auto* ethController = participant->CreateEthernetController(ethernetControllerName, ethernetNetworkName);
7878

7979
static constexpr auto ethernetAddress = demo::EthernetAddress{0x01, 0x23, 0x45, 0x67, 0x89, 0xab};

0 commit comments

Comments
 (0)