diff --git a/CHANGES.md b/CHANGES.md index 273428a..48e1e12 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,17 @@ # Connect SDK Changes History +## v18.1 + +* Feature: Allow masking of specified log fields. +* Change: Upgrade pytest to version 4.6.8. +* Fix: Added date to log formatter. + +## v18.0 + +* Feature: Updated models for v18. +* Feature: Add RQL filter support. +* Fix: UsageFileAction's subclass SubmitUsageFile had a rejection note, a parameter which should go in RejectUsageFile instead. + ## v17.6 * Fix: `ServerErrorResponseSchema` has a wrong errors field definition, it must be a list of strings. diff --git a/connect/logger/config.json b/connect/logger/config.json index b3b5ca5..72c310c 100644 --- a/connect/logger/config.json +++ b/connect/logger/config.json @@ -5,7 +5,7 @@ "formatters": { "single-line": { "class": "logging.Formatter", - "datefmt": "%I:%M:%S", + "datefmt": "%Y-%m-%d %H:%M:%S,uuu", "format": "%(levelname)-6s; %(asctime)s; %(name)-6s; %(module)s:%(funcName)s:line-%(lineno)d: %(message)s" } }, diff --git a/connect/logger/logger.py b/connect/logger/logger.py index cb3db17..c68e9eb 100644 --- a/connect/logger/logger.py +++ b/connect/logger/logger.py @@ -23,7 +23,7 @@ def function_log(custom_logger=None): sformat = " %(levelname)-6s; %(asctime)s; %(name)-6s; %(module)s:%(funcName)s:line" \ "-%(lineno)d: %(message)s" for handler in custom_logger.handlers: - handler.setFormatter(logging.Formatter(sformat, "%I:%M:%S")) + handler.setFormatter(logging.Formatter(sformat)) # noinspection PyUnusedLocal def decorator(func, **kwargs): diff --git a/connect/resources/automation_engine.py b/connect/resources/automation_engine.py index ad2fbb5..922b597 100644 --- a/connect/resources/automation_engine.py +++ b/connect/resources/automation_engine.py @@ -65,5 +65,5 @@ def _set_custom_logger(self, *args): base = " %(levelname)-6s; %(asctime)s; %(name)-6s; %(module)s:%(funcName)s:line" \ "-%(lineno)d: %(message)s" sformat = " ".join(args) + base - [handler.setFormatter(logging.Formatter(sformat, "%I:%M:%S")) + [handler.setFormatter(logging.Formatter(sformat)) for handler in self.__class__.logger.handlers]