Skip to content

Commit 6d49741

Browse files
committed
style(utils::killProcess): remove duplicated function identifier from log
1 parent 0fb05bc commit 6d49741

File tree

1 file changed

+4
-4
lines changed
  • packages/mongodb-memory-server-core/src/util

1 file changed

+4
-4
lines changed

packages/mongodb-memory-server-core/src/util/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export async function killProcess(
119119
const timeoutTime = 1000 * 10;
120120
await new Promise<void>((res, rej) => {
121121
let timeout = setTimeout(() => {
122-
ilog('killProcess: timeout triggered, trying SIGKILL');
122+
ilog('timeout triggered, trying SIGKILL');
123123

124124
if (!debug.enabled('MongoMS:utils')) {
125125
console.warn(
@@ -130,16 +130,16 @@ export async function killProcess(
130130

131131
childprocess.kill('SIGKILL');
132132
timeout = setTimeout(() => {
133-
ilog('killProcess: timeout triggered again, rejecting');
133+
ilog('timeout triggered again, rejecting');
134134
rej(new Error(`Process "${name}" didnt exit, enable debug for more information.`));
135135
}, timeoutTime);
136136
}, timeoutTime);
137137
childprocess.once(`exit`, (code, signal) => {
138-
ilog(`killProcess: ${name}: got exit signal, Code: ${code}, Signal: ${signal}`);
138+
ilog(`${name}: got exit signal, Code: ${code}, Signal: ${signal}`);
139139
clearTimeout(timeout);
140140
res();
141141
});
142-
ilog(`killProcess: ${name}: sending "SIGINT"`);
142+
ilog(`${name}: sending "SIGINT"`);
143143
childprocess.kill('SIGINT');
144144
});
145145
}

0 commit comments

Comments
 (0)