From 53029fd2c2c63fff09629a2b083bf6a61170e78d Mon Sep 17 00:00:00 2001 From: Yannis Roussos Date: Tue, 5 Nov 2019 15:48:56 +0200 Subject: [PATCH] Convert info messages to warnings for missing files and files of the wrong type --- tap_csv/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tap_csv/__init__.py b/tap_csv/__init__.py index fdc2a79..c890844 100644 --- a/tap_csv/__init__.py +++ b/tap_csv/__init__.py @@ -35,7 +35,7 @@ def write_schema_from_header(entity, header, keys): def process_file(fileInfo): #determines if file in question is a file or directory and processes accordingly if not os.path.exists(fileInfo["file"]): - logger.info(fileInfo["file"] + " does not exist, skipping") + logger.warning(fileInfo["file"] + " does not exist, skipping") return if os.path.isdir(fileInfo["file"]): fileInfo["file"] = os.path.normpath(fileInfo["file"]) + os.sep #ensures directories end with trailing slash @@ -49,8 +49,8 @@ def process_file(fileInfo): def sync_file(fileInfo): if fileInfo["file"][-4:] != ".csv": - logger.info("Skipping non-csv file '" + fileInfo["file"] + "'") - logger.info("Please provide a CSV file that ends with '.csv'; e.g. 'users.csv'") + logger.warning("Skipping non-csv file '" + fileInfo["file"] + "'") + logger.warning("Please provide a CSV file that ends with '.csv'; e.g. 'users.csv'") return logger.info("Syncing entity '" + fileInfo["entity"] + "' from file: '" + fileInfo["file"] + "'")