Skip to content

Commit

Permalink
Merge pull request #796 from snipsco/task/log-level
Browse files Browse the repository at this point in the history
Change logging levels from debug to info
  • Loading branch information
adrienball authored May 6, 2019
2 parents 6b1ae68 + bdbf929 commit 20aa29b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions snips_nlu/intent_classifier/log_reg_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ def fitted(self):
"""Whether or not the intent classifier has already been fitted"""
return self.intent_list is not None

@log_elapsed_time(logger, logging.DEBUG,
@log_elapsed_time(logger, logging.INFO,
"LogRegIntentClassifier in {elapsed_time}")
def fit(self, dataset):
"""Fits the intent classifier with a valid Snips dataset
Returns:
:class:`LogRegIntentClassifier`: The same instance, trained
"""
logger.debug("Fitting LogRegIntentClassifier...")
logger.info("Fitting LogRegIntentClassifier...")
dataset = validate_and_format_dataset(dataset)
self.load_resources_if_needed(dataset[LANGUAGE])
self.fit_builtin_entity_parser_if_needed(dataset)
Expand Down
2 changes: 1 addition & 1 deletion snips_nlu/intent_parser/deterministic_intent_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def fitted(self):
logger, logging.INFO, "Fitted deterministic parser in {elapsed_time}")
def fit(self, dataset, force_retrain=True):
"""Fits the intent parser with a valid Snips dataset"""
logger.info("Fitting deterministic parser...")
logger.info("Fitting deterministic intent parser...")
dataset = validate_and_format_dataset(dataset)
self.load_resources_if_needed(dataset[LANGUAGE])
self.fit_builtin_entity_parser_if_needed(dataset)
Expand Down
4 changes: 2 additions & 2 deletions snips_nlu/slot_filler/crf_slot_filler.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def fitted(self):
"""Whether or not the slot filler has already been fitted"""
return self.slot_name_mapping is not None

@log_elapsed_time(logger, logging.DEBUG,
@log_elapsed_time(logger, logging.INFO,
"Fitted CRFSlotFiller in {elapsed_time}")
# pylint:disable=arguments-differ
def fit(self, dataset, intent):
Expand All @@ -109,7 +109,7 @@ def fit(self, dataset, intent):
Returns:
:class:`CRFSlotFiller`: The same instance, trained
"""
logger.debug("Fitting %s slot filler...", intent)
logger.info("Fitting %s slot filler...", intent)
dataset = validate_and_format_dataset(dataset)
self.load_resources_if_needed(dataset[LANGUAGE])
self.fit_builtin_entity_parser_if_needed(dataset)
Expand Down

0 comments on commit 20aa29b

Please sign in to comment.