Skip to content

Commit

Permalink
chore: reduce verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Jul 24, 2023
1 parent c789a36 commit f7dd04d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/node-opcua-client/source/private/client_base_impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export class ClientBaseImpl extends OPCUASecureObject implements OPCUAClientBase
};

const _when_reconnectionIsCanceled = (callback: ErrorCallback) => {
warningLog("attempt to recreate a new secure channel : suspended because reconnection is canceled !");
doDebug && debugLog("attempt to recreate a new secure channel : suspended because reconnection is canceled !");
this.emit("reconnection_canceled");
return callback(new Error("Reconnection has been canceled - " + this.clientName));
};
Expand Down Expand Up @@ -706,7 +706,7 @@ export class ClientBaseImpl extends OPCUASecureObject implements OPCUAClientBase
],
(err) => {
if (err) {
errorLog("Inner create secure channel has failed", err.message);
doDebug && debugLog("Inner create secure channel has failed", err.message);
if (this._secureChannel) {
this._secureChannel!.abortConnection(() => {
this._destroy_secure_channel();
Expand Down
5 changes: 3 additions & 2 deletions packages/node-opcua-client/source/reconnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,11 @@ export function repair_client_session(client: IClientBase, session: ClientSessio
return;
}

console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! DELETE ME");
privateSession._reconnecting.reconnecting = false;
errorLog("Session has been restored");

// warningLog("Session has been restored");
doDebug && debugLog(chalk.yellow("session has been restored"), session.sessionId.toString());

session.emit("session_restored");
const otherCallbacks = privateSession._reconnecting.pendingCallbacks;
privateSession._reconnecting.pendingCallbacks = [];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as fs from "fs";
import { createPrivateKey } from "node:crypto";
import {
computeDerivedKeys,
encryptBufferWithDerivedKeys,
Expand Down

0 comments on commit f7dd04d

Please sign in to comment.