Skip to content

Commit

Permalink
Fix logging for the buttons plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Jul 30, 2024
1 parent ccc4134 commit 46bd4bd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void Create3Hmi::OnCreate3Button(const int button)
button_msg.set_data(button);

if (!this->create3_button_pub_.Publish(button_msg)) {
ignerr << "gz::msgs::Int32 message couldn't be published at topic: " <<
gzerr << "gz::msgs::Int32 message couldn't be published at topic: " <<
this->create3_button_topic_ << std::endl;
}
}
Expand All @@ -72,7 +72,7 @@ void Create3Hmi::SetNamespace(const QString &_name)
this->namespace_ = _name.toStdString();
this->create3_button_topic_ = this->namespace_ + "/create3_buttons";

ignmsg << "A new robot name has been entered, publishing on topic: '" <<
gzlog << "A new robot name has been entered, publishing on topic: '" <<
this->create3_button_topic_ << " ' " <<std::endl;

// Update publisher with new topic.
Expand All @@ -85,7 +85,7 @@ void Create3Hmi::SetNamespace(const QString &_name)
App()->findChild<MainWindow *>()->notifyWithDuration(
QString::fromStdString("Error when advertising topic: " +
this->create3_button_topic_), 4000);
ignerr << "Error when advertising topic: " <<
gzerr << "Error when advertising topic: " <<
this->create3_button_topic_ << std::endl;
}else {
App()->findChild<MainWindow *>()->notifyWithDuration(
Expand Down

0 comments on commit 46bd4bd

Please sign in to comment.