Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion connect/logger/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down
2 changes: 1 addition & 1 deletion connect/logger/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default is set to "%Y-%m-%d %H:%M:%S,uuu"


# noinspection PyUnusedLocal
def decorator(func, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion connect/resources/automation_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default is set to "%Y-%m-%d %H:%M:%S,uuu"

for handler in self.__class__.logger.handlers]