File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Sources/SwiftAPIClient/Types Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ public struct LoggingComponents: OptionSet {
17
17
public static let query = LoggingComponents ( rawValue: 1 << 8 )
18
18
public static let uuid = LoggingComponents ( rawValue: 1 << 9 )
19
19
public static let location = LoggingComponents ( rawValue: 1 << 10 )
20
- public static let onRequest = LoggingComponents ( rawValue: 1 << 11 )
20
+ public static let onRequest = LoggingComponents ( rawValue: 1 << 11 )
21
+ public static let cURL = LoggingComponents ( rawValue: 1 << 12 )
21
22
22
23
public static var url : LoggingComponents { [ . path, . baseURL, . query] }
23
24
@@ -102,6 +103,10 @@ public extension LoggingComponents {
102
103
message += " \n \( body. relativePath) "
103
104
isMultiline = true
104
105
}
106
+ if contains ( . cURL) {
107
+ message += " \n \( request. cURL) "
108
+ isMultiline = true
109
+ }
105
110
if isMultiline {
106
111
message += " \n --> END "
107
112
if contains ( . method) {
You can’t perform that action at this time.
0 commit comments