From 5879700a90004d4ad16cee2b222b2de97e9592d3 Mon Sep 17 00:00:00 2001 From: Peter Barnes Date: Fri, 1 May 2020 23:54:30 +0000 Subject: [PATCH] core: (fixes 2815) Config::Connect should throw warnings This patch logs unconditionally when a trace path doesn't exist. We also provide FailSafe versions of Config::Connect and Config::ConnectWithoutContext. These should be used when you can't be sure that a trace path exists in the current model. This resolves the warnings from AnimationInterface::ConnectCallbacks() Credit to "InquisitivePenguin (GCI 2019) <>" for diagnosing this issue, opening the way to a solution. --- CHANGES.html | 2 + doc/manual/source/attributes.rst | 10 +- doc/manual/source/tracing.rst | 7 + src/core/model/config.cc | 131 +++++++++++----- src/core/model/config.h | 30 ++++ src/netanim/model/animation-interface.cc | 190 +++++++++++------------ 6 files changed, 234 insertions(+), 136 deletions(-) diff --git a/CHANGES.html b/CHANGES.html index a5a56dd9a..4d1de5bd2 100644 --- a/CHANGES.html +++ b/CHANGES.html @@ -54,6 +54,7 @@ us a note on ns-developers mailing list.

Changes from ns-3.30 to ns-3.31

New API:

Changes to existing API: