From 7e6de3c186f7e27213aecf9c6fbd49c06004c099 Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Fri, 30 Aug 2024 14:09:39 +0530 Subject: [PATCH] feat: Removed unnecessary logs. Signed-off-by: Gaurav Goel --- .../Web3AuthSDK/Source/Web3AuthSDK/Private/Web3Auth.cpp | 8 ++++---- .../Source/Web3AuthSDK/Private/Web3AuthApi.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3Auth.cpp b/Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3Auth.cpp index 782e324..b0b7be8 100644 --- a/Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3Auth.cpp +++ b/Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3Auth.cpp @@ -553,7 +553,7 @@ void UWeb3Auth::request(FChainConfig chainConfig, FString method, TArrayCreateSession(request, [this, newSessionKey, method, requestParams, path](FString response) { - UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response); + //UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response); TSharedPtr requestData = MakeShared(); requestData->SetStringField(TEXT("method"), method); @@ -648,7 +648,7 @@ void UWeb3Auth::setResultUrl(FString hash) { signResponse.success = jsonObject->GetBoolField(TEXT("success")); signResponse.result = jsonObject->GetStringField(TEXT("result")); signResponse.error = jsonObject->GetStringField(TEXT("error")); - UE_LOG(LogTemp, Warning, TEXT("signResponse - success: %d, result: %s, error: %s"), signResponse.success, *signResponse.result, *signResponse.error); + //UE_LOG(LogTemp, Warning, TEXT("signResponse - success: %d, result: %s, error: %s"), signResponse.success, *signResponse.result, *signResponse.error); setSignResponse(signResponse); } } @@ -906,7 +906,7 @@ void UWeb3Auth::sessionTimeout() { web3AuthApi->Logout(request, [this](const FString& response) { - UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response); + //UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response); (void) this->logoutEvent.ExecuteIfBound(); this->sessionId = FString(); keyStoreUtils->Clear(); @@ -955,7 +955,7 @@ void UWeb3Auth::createSession(const FString& jsonData, int32 sessionTime, bool i web3AuthApi->CreateSession(request, [this, newSessionKey, isWalletService](const FString& response) { - UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response); + //UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response); if(isWalletService) { handleCreateSessionResponse("wallet", newSessionKey, isWalletService); } else { diff --git a/Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3AuthApi.cpp b/Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3AuthApi.cpp index 72e6621..188cf00 100644 --- a/Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3AuthApi.cpp +++ b/Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3AuthApi.cpp @@ -37,7 +37,7 @@ void UWeb3AuthApi::AuthorizeSession(const FString& key, const TFunctionOnProcessRequestComplete().BindLambda([callback](FHttpRequestPtr request, FHttpResponsePtr response, bool success) { FString response_string = response->GetContentAsString(); FString url = request->GetURL(); - UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response_string); + //UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response_string); if (success && response->GetResponseCode() == EHttpResponseCodes::Ok) { FStoreApiResponse api_response; @@ -69,7 +69,7 @@ void UWeb3AuthApi::Logout(const FLogoutApiRequest logoutApiRequest, const TFunct request->OnProcessRequestComplete().BindLambda([callback](FHttpRequestPtr request, FHttpResponsePtr response, bool success) { FString response_string = response->GetContentAsString(); - UE_LOG(LogTemp, Log, TEXT("Response: %s "), *response_string); + //UE_LOG(LogTemp, Log, TEXT("Response: %s "), *response_string); UE_LOG(LogTemp, Log, TEXT("Status code: %d "), response->GetResponseCode()); if (success && response->GetResponseCode() == EHttpResponseCodes::Created) { @@ -96,7 +96,7 @@ void UWeb3AuthApi::CreateSession(const FLogoutApiRequest logoutApiRequest, const request->OnProcessRequestComplete().BindLambda([callback](FHttpRequestPtr request, FHttpResponsePtr response, bool success) { FString response_string = response->GetContentAsString(); - UE_LOG(LogTemp, Log, TEXT("Response: %s "), *response_string); + //UE_LOG(LogTemp, Log, TEXT("Response: %s "), *response_string); UE_LOG(LogTemp, Log, TEXT("Status code: %d "), response->GetResponseCode()); if (success && response->GetResponseCode() == EHttpResponseCodes::Created) {