mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
fix log level
This commit is contained in:
parent
0de454fc25
commit
ecdd5ae88d
|
@ -280,7 +280,8 @@ export const stopMihomoLogs = async (): Promise<void> => {
|
|||
|
||||
const mihomoLogs = async (): Promise<void> => {
|
||||
stopMihomoLogs()
|
||||
mihomoLogsWs = await mihomoWs('/logs')
|
||||
const { 'log-level': logLevel } = await getControledMihomoConfig()
|
||||
mihomoLogsWs = await mihomoWs(`/logs?level=${logLevel}`)
|
||||
mihomoLogsWs.on('data', (data) => {
|
||||
try {
|
||||
const json = JSON.parse(trimJson(data.toString())) as IMihomoLogInfo
|
||||
|
|
Loading…
Reference in New Issue
Block a user