Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: noisy debug messages #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions plyara/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def p_rules(p):

def p_rule(self, p):
'''rule : scopes RULE ID tag_section LBRACE rule_body RBRACE'''
logger.info('Matched rule: {}'.format(p[3]))
logger.debug('Matched rule: {}'.format(p[3]))
if '.' in p[3]:
message = 'Invalid rule name {}, on line {}'.format(p[3], p.lineno(1))
raise ParseTypeError(message, p.lineno, p.lexpos)
Expand Down Expand Up @@ -823,7 +823,7 @@ def p_tag(self, p):
@staticmethod
def p_rule_body(p):
'''rule_body : sections'''
logger.info('Matched rule body')
logger.debug('Matched rule body')

@staticmethod
def p_rule_sections(p):
Expand All @@ -839,7 +839,7 @@ def p_rule_section(p):
@staticmethod
def p_meta_section(p):
'''meta_section : SECTIONMETA meta_kvs'''
logger.info('Matched meta section')
logger.debug('Matched meta section')

@staticmethod
def p_strings_section(p):
Expand All @@ -854,7 +854,7 @@ def p_condition_section(p):
def p_meta_kvs(p):
'''meta_kvs : meta_kvs meta_kv
| meta_kv'''
logger.info('Matched meta kvs')
logger.debug('Matched meta kvs')

def p_meta_kv(self, p):
'''meta_kv : ID EQUALS STRING
Expand All @@ -880,7 +880,7 @@ def p_meta_kv(self, p):
def p_strings_kvs(p):
'''strings_kvs : strings_kvs strings_kv
| strings_kv'''
logger.info('Matched strings kvs')
logger.debug('Matched strings kvs')

def _parse_string_kv(self, p, string_type):
"""Perform parsing for all string types.
Expand Down