Skip to content

Commit

Permalink
Additional tracing for connection code
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Oct 28, 2024
1 parent 9813763 commit d49a4a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions js/src/Ice/ConnectionI.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit d49a4a5

Please sign in to comment.