Bug 989 - Implementation of python-style warning filters
Implementation of python-style warning filters
Status: NEW
Product: ns-3
Classification: Unclassified
Component: general
ns-3-dev
All All
: P5 enhancement
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-01 15:40 EDT by Christian
Modified: 2010-09-01 15:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian 2010-09-01 15:40:19 EDT
Important warnings are not visible if the corresponding LogComponent has not been enabled.
On the other hand, turning all such important warnings into unconditional prints (e.g. via NS_LOG_UNCOND) is problematic, for they might keep appearing, thereby confusing the whole output.

A proposal[1] was to use Python-style warning filters, the main advantage of which is the fact that "they appear only once per (source file, line number)".

[1] http://groups.google.com/group/ns-3-users/tree/browse_frm/thread/d594df3bbccc0e23/7e8bae91888a32a9?#doc_aa5c89bdb896f714