From 06d9520330caeef151b53497b377c298fdfbb720 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Thu, 22 Oct 2015 09:36:01 +0200 Subject: [PATCH] #7 - change log level in configuration to error and warning --- carrier_pigeon/configuration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/carrier_pigeon/configuration.py b/carrier_pigeon/configuration.py index 865dbdb..36f6cc7 100644 --- a/carrier_pigeon/configuration.py +++ b/carrier_pigeon/configuration.py @@ -158,7 +158,7 @@ def output_files_from_item(self, item, row=None): row, ) if not output: - logger.info("Error for item %i with Output Maker %s" + logger.error("Error for item %i with Output Maker %s" % (item.pk, output_maker)) continue @@ -178,7 +178,7 @@ def output_files_from_item(self, item, row=None): default=False ) if not validation: - logger.info("Validation error for item %i with" + logger.error("Validation error for item %i with" " validator %s" % ( item.pk, @@ -188,7 +188,7 @@ def output_files_from_item(self, item, row=None): if not validation: # --- If one validator did not pass we # do no want to send the file - logger.info("the output was not validated for item : %i" + logger.error("the output was not validated for item : %i" % item.pk ) continue # We don't want the export process to be stopped @@ -207,7 +207,7 @@ def output_files_from_item(self, item, row=None): ) if local_final_path: - logger.info("File added to output: %s" % local_final_path) + logger.warning("File added to output: %s" % local_final_path) output_files.append(local_final_path) # --- Manage related items, if any