本文整理汇总了TypeScript中common/Logger.RecordingLogger.debug方法的典型用法代码示例。如果您正苦于以下问题:TypeScript RecordingLogger.debug方法的具体用法?TypeScript RecordingLogger.debug怎么用?TypeScript RecordingLogger.debug使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类common/Logger.RecordingLogger
的用法示例。
在下文中一共展示了RecordingLogger.debug方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: async
stop: async () => {
logger.debug(`Asked to stop, cancelling butler process`);
cancelled = true;
if (launchConvo) {
await launchConvo.cancel();
}
},
示例2: performLaunch
//.........这里部分代码省略.........
buttons: [
{
label: ["prompt.action.continue"],
action: actions.modalResponse({
continue: true,
}),
},
"cancel",
],
})
);
if (res) {
return { continue: true };
}
return { continue: false };
});
convo.on(messages.PrereqsEnded, async () => {
closePrereqsModal();
});
convo.on(messages.LaunchRunning, async () => {
logger.info("Now running!");
ctx.emitProgress({ progress: 1, stage: "run" });
if (preferences.preventDisplaySleep) {
powerSaveBlockerId = powerSaveBlocker.start(
"prevent-display-sleep"
);
}
});
convo.on(messages.LaunchExited, async () => {
logger.info("Exited!");
ctx.emitProgress({ progress: -1, stage: "clean" });
});
convo.on(messages.AllowSandboxSetup, async () => {
let messageString: LocalizedString = "";
let detailString: LocalizedString = "";
if (process.platform === "win32") {
messageString = ["sandbox.setup.windows.message"];
detailString = ["sandbox.setup.windows.detail"];
} else {
messageString = ["sandbox.setup.linux.message"];
detailString = ["sandbox.setup.linux.detail"];
}
const res = await promisedModal(
store,
modals.sandboxBlessing.make({
wind: "root",
title: ["sandbox.setup.title"],
message: messageString,
detail: detailString,
widgetParams: {},
buttons: [
{
label: ["sandbox.setup.proceed"],
action: modals.sandboxBlessing.action({
sandboxBlessing: true,
}),
icon: "security",
},
"cancel",
],
})
);
if (res && res.sandboxBlessing) {
return { allow: true };
}
return { allow: false };
});
}
);
} finally {
closePrereqsModal();
if (powerSaveBlockerId) {
powerSaveBlocker.stop(powerSaveBlockerId);
}
}
},
stop: async () => {
logger.debug(`Asked to stop, cancelling butler process`);
cancelled = true;
if (launchConvo) {
await launchConvo.cancel();
}
},
});
if (cancelled) {
logger.debug(`throwing cancelled`);
throw new Cancelled();
}
}