From d49a4a5d6f6fc1019d4c1dc18529d5b9adaeeda8 Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 28 Oct 2024 15:50:17 +0100 Subject: [PATCH] Additional tracing for connection code --- .github/workflows/ci.yml | 2 +- js/src/Ice/ConnectionI.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd9bb292fde..6dee8ecaf92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - os: windows-2022 config: "release" build_flags: "/p:Platform=x64" - test_flags: "--platform=x64" + test_flags: "--platform=x64 --filter js/Ice/ami --loop" - os: windows-2022 config: "cpp-win32-release" working_directory: "cpp" diff --git a/js/src/Ice/ConnectionI.js b/js/src/Ice/ConnectionI.js index af5ebd6c39f..124d6038b2a 100644 --- a/js/src/Ice/ConnectionI.js +++ b/js/src/Ice/ConnectionI.js @@ -577,6 +577,9 @@ export class ConnectionI { } } } catch (ex) { + console.log("State: " + this._state); + console.log(new Error().stack); + console.log(ex); this.setState(StateClosed, ex); return; } @@ -627,6 +630,8 @@ export class ConnectionI { try { this.initiateShutdown(); } catch (ex) { + console.log(new Error().stack); + console.log(ex); if (ex instanceof LocalException) { this.setState(StateClosed, ex); } else { @@ -969,6 +974,8 @@ export class ConnectionI { } } } catch (ex) { + console.log(new Error().stack); + console.log(ex); if (ex instanceof LocalException) { this._logger.error(`unexpected connection exception:\n${this._desc}\n${ex.toString()}`); } else { @@ -982,6 +989,8 @@ export class ConnectionI { try { this.initiateShutdown(); } catch (ex) { + console.log(new Error().stack); + console.log(ex); if (ex instanceof LocalException) { this.setState(StateClosed, ex); } else {