Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pliz don't have two log channels with the same name
[simgrid.git] / examples / s4u / replay-comm / s4u-replay-comm.cpp
index 5d5b515..4c5db1e 100644 (file)
@@ -8,10 +8,10 @@
 #include "xbt/str.h"
 #include <string>
 
-XBT_LOG_NEW_DEFAULT_CATEGORY(replay, "Messages specific for this msg example");
+XBT_LOG_NEW_DEFAULT_CATEGORY(replay_comm, "Messages specific for this msg example");
 
 #define ACT_DEBUG(...)                                                                                                 \
-  if (XBT_LOG_ISENABLED(replay, xbt_log_priority_verbose)) {                                                           \
+  if (XBT_LOG_ISENABLED(replay_comm, xbt_log_priority_verbose)) {                                                      \
     char* NAME = xbt_str_join_array(action, " ");                                                                      \
     XBT_DEBUG(__VA_ARGS__);                                                                                            \
     xbt_free(NAME);                                                                                                    \
@@ -20,7 +20,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(replay, "Messages specific for this msg example");
 
 static void log_action(const char* const* action, double date)
 {
-  if (XBT_LOG_ISENABLED(replay, xbt_log_priority_verbose)) {
+  if (XBT_LOG_ISENABLED(replay_comm, xbt_log_priority_verbose)) {
     char* name = xbt_str_join_array(action, " ");
     XBT_VERB("%s %f", name, date);
     xbt_free(name);