diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-13 02:35:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 02:35:00 +0200 |
commit | 9c0cc0db63f61cd71a2a735519dc7816973e5b7e (patch) | |
tree | fc418cf7883e595efc064f821fb4e81eb80a8072 | |
parent | adceaf568cd8c14e67ba59d969eef84fd12fa8a8 (diff) | |
parent | 634d057a52f87e33c9a7b799aa8fcf661901d9de (diff) |
Merge pull request #21979 from Faless/script_debugger_connect_log
Add message when ScriptDebugger connects.
-rw-r--r-- | core/script_debugger_remote.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/script_debugger_remote.cpp b/core/script_debugger_remote.cpp index 0519807e63..704b4d1fdc 100644 --- a/core/script_debugger_remote.cpp +++ b/core/script_debugger_remote.cpp @@ -77,18 +77,19 @@ Error ScriptDebuggerRemote::connect_to_host(const String &p_host, uint16_t p_por for (int i = 0; i < tries; i++) { if (tcp_client->get_status() == StreamPeerTCP::STATUS_CONNECTED) { + print_verbose("Remote Debugger: Connected!"); break; } else { const int ms = waits[i]; OS::get_singleton()->delay_usec(ms * 1000); - ERR_PRINTS("Remote Debugger: Connection failed with status: '" + String::num(tcp_client->get_status()) + "', retrying in " + String::num(ms) + " msec."); + print_verbose("Remote Debugger: Connection failed with status: '" + String::num(tcp_client->get_status()) + "', retrying in " + String::num(ms) + " msec."); }; }; if (tcp_client->get_status() != StreamPeerTCP::STATUS_CONNECTED) { - ERR_PRINTS("Remote Debugger: Unable to connect."); + ERR_PRINTS("Remote Debugger: Unable to connect. Status: " + String::num(tcp_client->get_status())); return FAILED; }; |