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"] + "'")