Skip to content

Commit

Permalink
feat: Removed unnecessary logs.
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Goel <gaurav@tor.us>
  • Loading branch information
grvgoel81 authored and Gaurav Goel committed Aug 30, 2024
1 parent e1da558 commit 7e6de3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3Auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ void UWeb3Auth::request(FChainConfig chainConfig, FString method, TArray<FString

web3AuthApi->CreateSession(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<FJsonObject> requestData = MakeShared<FJsonObject>();
requestData->SetStringField(TEXT("method"), method);
Expand Down Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void UWeb3AuthApi::AuthorizeSession(const FString& key, const TFunction<void(FSt
request->OnProcessRequestComplete().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;
Expand Down Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 7e6de3c

Please sign in to comment.