We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9ecc7 commit 26b0bb6Copy full SHA for 26b0bb6
1 file changed
api.js
@@ -121,6 +121,17 @@ const serverOptions = {
121
key = key.substr(0, 30) + '…';
122
}
123
124
+ try {
125
+ // if the param is a date ensure it gets sent as an ISO String to logging
126
+ const possibleDate = new Date(value); // Value guaranteed to be string
127
+ if (!isNaN(possibleDate.getTime()) && possibleDate.toString() !== 'Invalid Date') {
128
+ // valid date
129
+ value = possibleDate.toISOString();
130
+ }
131
+ } catch {
132
+ // ignore
133
134
+
135
message['_req_' + key] = value;
136
});
137
0 commit comments