Skip to content

Commit d04eb12

Browse files
authored
Merge pull request #601 from emqx/fix-debug
fix(useDriver.ts): fix can't switch debug level
2 parents 189b0f8 + c589e24 commit d04eb12

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/composables/config/useDriver.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ export const useNodeDebugLogLevel = () => {
153153

154154
const modifyNodeLogLevelToDebug = async (nodeName: string, logLevel: string) => {
155155
try {
156-
await updateNodeLogLevelToDebug(nodeName, logLevel)
156+
const currentLogLevel = logLevel === 'debug' ? 'notice' : 'debug'
157+
await updateNodeLogLevelToDebug(nodeName, currentLogLevel)
157158
EmqxMessage.success(t('config.modifyNodeLogLevelSuc'))
158159
return Promise.resolve()
159160
} catch (error) {

src/composables/config/useNodeList.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const useFillNodeListStatusData = () => {
5353
running: !itemStatus ? 1 : itemStatus.running,
5454
link: !itemStatus ? 0 : itemStatus.link,
5555
rtt: Number(itemStatus?.rtt) || 0,
56+
log_level: itemStatus.log_level,
5657
}
5758
const node = Object.assign(item, itemStatusData)
5859
return Promise.resolve(node)

src/utils/forToBeSubApp.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function replacePath(
1616
}
1717

1818
// Modify according to the integrated version, such as the integrated `neuron` version `2.5.1`, please modify the version to `v2.5.1`
19-
export const IntegratedVersion = '2.5.0'
19+
export const IntegratedVersion = '2.6.0'
2020
export const IntegratePublicPath = `/integration/neuron/v${IntegratedVersion}`
2121

2222
export const getIntegratedAPI = (serviceId: string, url: string) => `/api/edgeservice/proxy/${serviceId}/api/v2${url}`

vue.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function resolve(dir) {
77

88
// ECP
99
const { VUE_APP_SUB_APP = true } = process.env
10-
const IntegratedVersion = '2.5.0'
10+
const IntegratedVersion = '2.6.0'
1111

1212
let publicPath = '/web'
1313
const name = `neuron-${IntegratedVersion}`

0 commit comments

Comments
 (0)