Remove debugging prints related to the asset library

This commit is contained in:
Hugo Locurcio 2018-02-05 22:39:35 +01:00
parent 5c9ecc174b
commit 5513e4e1f9
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
2 changed files with 0 additions and 15 deletions

View File

@ -316,7 +316,6 @@ EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() {
void EditorAssetLibraryItemDownload::_http_download_completed(int p_status, int p_code, const PoolStringArray &headers, const PoolByteArray &p_data) { void EditorAssetLibraryItemDownload::_http_download_completed(int p_status, int p_code, const PoolStringArray &headers, const PoolByteArray &p_data) {
String error_text; String error_text;
print_line("COMPLETED: " + itos(p_status) + " code: " + itos(p_code) + " data size: " + itos(p_data.size()));
switch (p_status) { switch (p_status) {
@ -371,7 +370,6 @@ void EditorAssetLibraryItemDownload::_http_download_completed(int p_status, int
progress->set_max(download->get_body_size()); progress->set_max(download->get_body_size());
progress->set_value(download->get_downloaded_bytes()); progress->set_value(download->get_downloaded_bytes());
print_line("max: " + itos(download->get_body_size()) + " bytes: " + itos(download->get_downloaded_bytes()));
install->set_disabled(false); install->set_disabled(false);
progress->set_value(download->get_downloaded_bytes()); progress->set_value(download->get_downloaded_bytes());
@ -747,8 +745,6 @@ void EditorAssetLibrary::_image_request_completed(int p_status, int p_code, cons
if (p_status == HTTPRequest::RESULT_SUCCESS) { if (p_status == HTTPRequest::RESULT_SUCCESS) {
print_line("GOT IMAGE YAY!");
if (p_code != HTTPClient::RESPONSE_NOT_MODIFIED) { if (p_code != HTTPClient::RESPONSE_NOT_MODIFIED) {
for (int i = 0; i < headers.size(); i++) { for (int i = 0; i < headers.size(); i++) {
if (headers[i].findn("ETag:") == 0) { // Save etag if (headers[i].findn("ETag:") == 0) { // Save etag
@ -811,7 +807,6 @@ void EditorAssetLibrary::_update_image_queue() {
} }
} }
print_line("REQUEST ICON FOR: " + itos(E->get().asset_id));
Error err = E->get().request->request(E->get().image_url, headers); Error err = E->get().request->request(E->get().image_url, headers);
if (err != OK) { if (err != OK) {
to_delete.push_back(E->key()); to_delete.push_back(E->key());
@ -855,7 +850,6 @@ void EditorAssetLibrary::_request_image(ObjectID p_for, String p_image_url, Imag
void EditorAssetLibrary::_repository_changed(int p_repository_id) { void EditorAssetLibrary::_repository_changed(int p_repository_id) {
host = repository->get_item_metadata(p_repository_id); host = repository->get_item_metadata(p_repository_id);
print_line(".." + host);
if (templates_only) { if (templates_only) {
_api_request("configure", REQUESTING_CONFIG, "?type=project"); _api_request("configure", REQUESTING_CONFIG, "?type=project");
} else { } else {
@ -1066,8 +1060,6 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
return; return;
} }
print_line("response: " + itos(p_status) + " code: " + itos(p_code));
Dictionary d; Dictionary d;
{ {
Variant js; Variant js;
@ -1077,8 +1069,6 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
d = js; d = js;
} }
print_line(Variant(d).get_construct_string());
RequestType requested = requesting; RequestType requested = requesting;
requesting = REQUESTING_NONE; requesting = REQUESTING_NONE;

View File

@ -141,9 +141,6 @@ int StreamPeerOpenSSL::_cert_verify_callback(X509_STORE_CTX *x509_ctx, void *arg
X509_NAME_oneline(X509_get_subject_name(server_cert), X509_NAME_oneline(X509_get_subject_name(server_cert),
cert_str, sizeof(cert_str)); cert_str, sizeof(cert_str));
print_line("CERT STR: " + String(cert_str));
print_line("VALID: " + itos(base_cert_valid));
if (!base_cert_valid) if (!base_cert_valid)
return 0; return 0;
@ -382,7 +379,6 @@ Error StreamPeerOpenSSL::connect_to_stream(Ref<StreamPeer> p_base, bool p_valida
// Same as before, try to connect. // Same as before, try to connect.
int result = SSL_connect(ssl); int result = SSL_connect(ssl);
print_line("CONNECTION RESULT: " + itos(result));
if (result < 1) { if (result < 1) {
ERR_print_errors_fp(stdout); ERR_print_errors_fp(stdout);
_print_error(result); _print_error(result);
@ -392,7 +388,6 @@ Error StreamPeerOpenSSL::connect_to_stream(Ref<StreamPeer> p_base, bool p_valida
if (peer) { if (peer) {
bool cert_ok = SSL_get_verify_result(ssl) == X509_V_OK; bool cert_ok = SSL_get_verify_result(ssl) == X509_V_OK;
print_line("cert_ok: " + itos(cert_ok));
} else if (validate_certs) { } else if (validate_certs) {
status = STATUS_ERROR_NO_CERTIFICATE; status = STATUS_ERROR_NO_CERTIFICATE;