rename the log label and input name

This commit is contained in:
adashen 2018-05-14 15:23:28 +08:00
Родитель 72005f82fb
Коммит e12cd1ded8
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);
}