rename the log label and input name
This commit is contained in:
Родитель
72005f82fb
Коммит
e12cd1ded8
|
@ -11,7 +11,7 @@ winston.loggers.add('log', {
|
|||
}
|
||||
});
|
||||
|
||||
const labelName = 'PrintInput';
|
||||
const labelName = 'Print';
|
||||
const printer = 'printer';
|
||||
const filePath = process.env.ModuleOutputFile;
|
||||
if (filePath) {
|
||||
|
|
|
@ -23,7 +23,7 @@ async function setOptions(optionObj) {
|
|||
}
|
||||
|
||||
function printInput(inputName, msg) {
|
||||
if (inputName === 'printInput') {
|
||||
if (inputName === 'print') {
|
||||
const message = msg.getBytes().toString('utf-8');
|
||||
printer.info(message);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче