Skip to content

Commit 77ac0cd

Browse files
committed
Log messages
1 parent 4a05b13 commit 77ac0cd

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/sandbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ function sandBox(script, name, verbose, debug, context) {
12741274

12751275
// detect subscribe('id', 'any', (obj) => {})
12761276
if ((typeof pattern === 'string' || pattern instanceof RegExp) && typeof callbackOrId === 'string' && typeof value === 'function') {
1277-
pattern = {id: pattern, change: callbackOrId};
1277+
pattern = { id: pattern, change: callbackOrId };
12781278
callbackOrId = value;
12791279
value = undefined;
12801280
}
@@ -1302,7 +1302,7 @@ function sandBox(script, name, verbose, debug, context) {
13021302

13031303
// source is set by regexp if defined as /regexp/
13041304
if (!isObject(pattern) || pattern instanceof RegExp || pattern.source) {
1305-
pattern = {id: pattern, change: 'ne'};
1305+
pattern = { id: pattern, change: 'ne' };
13061306
}
13071307

13081308
if (pattern.id !== undefined && !pattern.id) {

main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@ function createProblemObject(id, cb) {
16491649
_id: idProblem,
16501650
common: {
16511651
name: 'scriptProblem.' + id.substring(SCRIPT_CODE_MARKER.length),
1652-
desc: 'is the script has a problem',
1652+
desc: 'Script has a problem',
16531653
type: 'boolean',
16541654
expert: true,
16551655
write: false,
@@ -1747,8 +1747,7 @@ function installNpm(npmLib, callback) {
17471747
// Also, set the working directory (cwd) of the process instead of using --prefix
17481748
// because that has ugly bugs on Windows
17491749
const cmd = `npm install ${npmLib} --omit=dev`;
1750-
adapter.log.info(`${cmd} (System call)`);
1751-
// Install node modules as system call
1750+
adapter.log.info(`Installing ${npmLib} into ${__dirname} - cmd: ${cmd}`);
17521751

17531752
// System call used for update of js-controller itself,
17541753
// because during installation npm packet will be deleted too, but some files must be loaded even during the installation process.
@@ -1798,6 +1797,9 @@ function installLibraries(callback) {
17981797
if (versionChunkPos > -1) {
17991798
libName = libName.slice(0, versionChunkPos);
18001799
}
1800+
1801+
adapter.log.debug(`Found custom dependency in config: "${libraries[lib]}" (${libName})`);
1802+
18011803
if (!nodeFS.existsSync(`${__dirname}/node_modules/${libName}/package.json`)) {
18021804
if (!attempts[libraries[lib]]) {
18031805
attempts[libraries[lib]] = 1;

0 commit comments

Comments
 (0)