File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Task/Protocols Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ extension AmplifyAuthTask where Self: DefaultLogger {
3131 do {
3232 log. info ( " Starting execution for \( eventName) " )
3333 let valueReturned = try await execute ( )
34- log. info ( " Successfully completed execution for \( eventName) with result: \n \( prettify ( valueReturned) ) " )
34+ log. info ( " Successfully completed execution for \( eventName) with result: \n \( valueReturned) " )
3535 dispatch ( result: . success( valueReturned) )
3636 return valueReturned
3737 } catch let error as Failure {
38- log. error ( " Failed execution for \( eventName) with error: \n \( prettify ( error) ) " )
38+ log. error ( " Failed execution for \( eventName) with error: \n \( error) " )
3939 dispatch ( result: . failure( error) )
4040 throw error
4141 }
@@ -47,10 +47,4 @@ extension AmplifyAuthTask where Self: DefaultLogger {
4747 let payload = HubPayload ( eventName: eventName, context: nil , data: result)
4848 Amplify . Hub. dispatch ( to: channel, payload: payload)
4949 }
50-
51- private func prettify< T> ( _ value: T ) -> String {
52- var result = " "
53- dump ( value, to: & result)
54- return result
55- }
5650}
You can’t perform that action at this time.
0 commit comments