Skip to content

Commit 91c76e8

Browse files
authored
Merge pull request #89 from Adrian-IM/CPS-71-Missing-Date-Info
Cps 71 missing date info
2 parents a78c0f6 + d77159f commit 91c76e8

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Connect SDK Changes History
22

3+
## v18.1
4+
5+
* Feature: Allow masking of specified log fields.
6+
* Change: Upgrade pytest to version 4.6.8.
7+
* Fix: Added date to log formatter.
8+
9+
## v18.0
10+
11+
* Feature: Updated models for v18.
12+
* Feature: Add RQL filter support.
13+
* Fix: UsageFileAction's subclass SubmitUsageFile had a rejection note, a parameter which should go in RejectUsageFile instead.
14+
315
## v17.6
416

517
* Fix: `ServerErrorResponseSchema` has a wrong errors field definition, it must be a list of strings.

connect/logger/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"formatters": {
66
"single-line": {
77
"class": "logging.Formatter",
8-
"datefmt": "%I:%M:%S",
8+
"datefmt": "%Y-%m-%d %H:%M:%S,uuu",
99
"format": "%(levelname)-6s; %(asctime)s; %(name)-6s; %(module)s:%(funcName)s:line-%(lineno)d: %(message)s"
1010
}
1111
},

connect/logger/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def function_log(custom_logger=None):
2323
sformat = " %(levelname)-6s; %(asctime)s; %(name)-6s; %(module)s:%(funcName)s:line" \
2424
"-%(lineno)d: %(message)s"
2525
for handler in custom_logger.handlers:
26-
handler.setFormatter(logging.Formatter(sformat, "%I:%M:%S"))
26+
handler.setFormatter(logging.Formatter(sformat))
2727

2828
# noinspection PyUnusedLocal
2929
def decorator(func, **kwargs):

connect/resources/automation_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ def _set_custom_logger(self, *args):
6565
base = " %(levelname)-6s; %(asctime)s; %(name)-6s; %(module)s:%(funcName)s:line" \
6666
"-%(lineno)d: %(message)s"
6767
sformat = " ".join(args) + base
68-
[handler.setFormatter(logging.Formatter(sformat, "%I:%M:%S"))
68+
[handler.setFormatter(logging.Formatter(sformat))
6969
for handler in self.__class__.logger.handlers]

0 commit comments

Comments
 (0)