Skip to content

Commit 3fd5431

Browse files
authored
Merge pull request #25 from opatrascoiu/main
Finalize implementation of LoggingEventListener
2 parents f3734cb + 122bfe4 commit 3fd5431

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/jdmn/runtime/listener/LoggingEventListener.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ def endDRGElement(self, element: DRGElement, arguments: Arguments, output: Any,
2929
self.logger.info("End %s '%s' with output '%s' in %sms", element.elementKind.displayName, element.name, output, duration)
3030

3131
def startRule(self, element: DRGElement, rule: Rule) -> None:
32-
raise NotImplementedError()
32+
self.logger.debug("Start rule %s for '%s'", rule.index, element.name)
3333

3434
def matchRule(self, element: DRGElement, rule: Rule) -> None:
35-
raise NotImplementedError()
35+
self.logger.debug("Match rule %s for '%s'", rule.index, element.name)
3636

3737
def endRule(self, element: DRGElement, rule: Rule, output: Any) -> None:
38-
self.logger.debug("Rule %s fired with output '%s'", rule.index, output)
38+
self.logger.debug("End rule %s for '%s' with output '%s'", rule.index, element.name, output)
3939

4040
def matchColumn(self, rule: Rule, columnIndex: int, result: Any) -> None:
4141
self.logger.debug("Test %s checked with output '%s'", columnIndex, result)

src/jdmn/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
# specific language governing permissions and limitations under the License.
1212
#
13-
__version__ = "1.0.2"
13+
__version__ = "1.0.3"
1414
__version_info__ = tuple(int(i) for i in __version__.split(".") if i.isdigit())

0 commit comments

Comments
 (0)