summaryrefslogtreecommitdiffstats
path: root/mmss/monitor_log.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-07-24 23:35:20 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-07-24 23:35:20 +0200
commit8cc6b6dd69cee050c16a1c871c986ed933141866 (patch)
tree6fb604bcec561b7a0cfb17395eb59ffcc776b365 /mmss/monitor_log.cpp
parentcbbfe4360d95294d792956df43df4a72854a8e80 (diff)
downloadgmrf-master.tar
gmrf-master.zip
Completely log simulationsHEADmaster
Diffstat (limited to 'mmss/monitor_log.cpp')
-rw-r--r--mmss/monitor_log.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/mmss/monitor_log.cpp b/mmss/monitor_log.cpp
index bbb56a4..9a21e03 100644
--- a/mmss/monitor_log.cpp
+++ b/mmss/monitor_log.cpp
@@ -32,12 +32,19 @@
namespace MMSS {
void monitor_log_t::handle_log(node_t *node, int priority, const std::string &message) {
- node->get_context()->logf(priority, "%s: %s", node->get_name().c_str(), message.c_str());
+ if (priority < LOG_DEBUG)
+ node->get_context()->logf(priority, "%s: %s", node->get_name().c_str(), message.c_str());
}
void monitor_log_t::handle_init(node_t *node UNUSED, const uint8_t *node_id UNUSED, size_t len UNUSED) {
}
+void monitor_log_t::handle_network(network_t *net UNUSED) {
+}
+
+void monitor_log_t::handle_iface(node_t *node UNUSED, iface_t *iface UNUSED) {
+}
+
void monitor_log_t::handle_neigh(node_t *node UNUSED, iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED, float rxcost UNUSED, float txcost UNUSED) {
}