feat(shell): log warn when no engine found

This commit is contained in:
Il Harper 2024-03-05 12:08:37 +08:00
parent 7b3cb39c73
commit 6f848f3f0a
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -67,6 +67,9 @@ export const chronocat = async () => {
}
})
if (!engines.length)
l.warn('没有找到任何引擎。Chronocat 服务仍将启动。', { code: 2156 })
for (const engineInfo of engines) {
try {
l.debug(