Skip to content

Commit 0b7eeec

Browse files
committed
Add initial logging rework deprecation warnings to docs. #168
1 parent 37496b7 commit 0b7eeec

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docs/api/messages.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ Exceptions
4444

4545
Message Handling
4646
----------------
47+
48+
.. warning::
49+
50+
The ``MessagePrinter`` and ``MessageHandler`` classes will be deprecated in
51+
a future release. See the following page for details: https://github.com/SystemRDL/systemrdl-compiler/issues/168
52+
4753
.. autoclass:: systemrdl.messages.MessagePrinter
4854
:members:
4955

systemrdl/compiler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def __init__(self, **kwargs: Any):
104104
raise TypeError("got an unexpected keyword argument '%s'" % list(kwargs.keys())[0])
105105

106106
#: Reference to the compiler's :class:`~systemrdl.messages.MessageHandler` object
107+
#:
108+
#: .. warning::
109+
#:
110+
#: This will be deprecated in a future release. See this page for more details: https://github.com/SystemRDL/systemrdl-compiler/issues/168
107111
self.msg = self.env.msg
108112

109113
self.namespace = NamespaceRegistry(self.env) # type: NamespaceRegistry

systemrdl/importer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def __init__(self, compiler: RDLCompiler):
2525
self.compiler = compiler
2626

2727
#: Reference to the compiler message handler
28+
#:
29+
#: .. warning::
30+
#:
31+
#: This will be deprecated in a future release. See this page for more details: https://github.com/SystemRDL/systemrdl-compiler/issues/168
2832
self.msg = compiler.env.msg
2933

3034
#: Source reference used by default when not specified in importer

0 commit comments

Comments
 (0)