Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh : replacing msg by msg_fmt in neb #18

Merged
merged 3 commits into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/10-neb/broker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
** For more information : contact@centreon.com
*/

#include "com/centreon/broker/exceptions/msg.hh"
#include "com/centreon/exceptions/msg_fmt.hh"
#include "com/centreon/broker/io/events.hh"
#include "com/centreon/broker/logging/logging.hh"
#include "com/centreon/broker/neb/events.hh"
#include "com/centreon/broker/neb/internal.hh"
#include "com/centreon/broker/io/protocols.hh"

using namespace com::centreon;
using namespace com::centreon::broker;

static uint32_t neb_instances(0);
Expand Down Expand Up @@ -63,9 +64,7 @@ void broker_module_init(void const* arg) {
if (neb_category != io::events::neb) {
e.unregister_category(neb_category);
--neb_instances;
throw(exceptions::msg() << "NEB: category " << io::events::neb
<< " is already registered whereas it should be "
<< "reserved for the NEB module");
throw(exceptions::msg_fmt("NEB: category '{}' is already registered whereas it should be reserved for the NEB module", io::events::neb));
jbrouze marked this conversation as resolved.
Show resolved Hide resolved
}

// Register events.
Expand Down
4 changes: 3 additions & 1 deletion src/10-neb/downtime_serializable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
*/

#include "com/centreon/broker/neb/downtime_serializable.hh"
#include "com/centreon/exceptions/msg_fmt.hh"
jbrouze marked this conversation as resolved.
Show resolved Hide resolved
#include <sstream>
#include "com/centreon/broker/exceptions/msg.hh"

using namespace com::centreon;
using namespace com::centreon::broker;
jbrouze marked this conversation as resolved.
Show resolved Hide resolved
using namespace com::centreon::broker::neb;

/**
Expand Down