node-opcua-debug
Advanced tools
Comparing version 2.67.0 to 2.68.0
@@ -26,3 +26,3 @@ "use strict"; | ||
// xx console.log(" log_file ",log_file); | ||
const f = fs.createWriteStream(logFile, { flags: "w", encoding: "ascii" }); | ||
const f = fs.createWriteStream(logFile, { flags: "w", encoding: "utf-8" }); | ||
function _write_to_file(...args) { | ||
@@ -49,3 +49,3 @@ const msg = util_1.format.call(null, ...args); | ||
// display file on screen for investigation | ||
console.log(fs.readFileSync(logFile).toString("ascii")); | ||
console.log(fs.readFileSync(logFile).toString("utf-8")); | ||
f.end(() => { | ||
@@ -52,0 +52,0 @@ if (callback) { |
{ | ||
"name": "node-opcua-debug", | ||
"version": "2.67.0", | ||
"version": "2.68.0", | ||
"description": "pure nodejs OPCUA SDK - module -debug", | ||
@@ -36,3 +36,3 @@ "scripts": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "74c2fd7d4ce3eb48d25a911258bf90a64218ea0e" | ||
"gitHead": "363b466440d0910acddd0cde2c37792ce4724d76" | ||
} |
@@ -29,3 +29,3 @@ /** | ||
// xx console.log(" log_file ",log_file); | ||
const f = fs.createWriteStream(logFile, { flags: "w", encoding: "ascii" }); | ||
const f = fs.createWriteStream(logFile, { flags: "w", encoding: "utf-8" }); | ||
@@ -57,3 +57,3 @@ function _write_to_file(...args: [any, ...any[]]) { | ||
console.log(fs.readFileSync(logFile).toString("ascii")); | ||
console.log(fs.readFileSync(logFile).toString("utf-8")); | ||
@@ -60,0 +60,0 @@ f.end(() => { |