Skip to content

Commit

Permalink
Merge pull request #2833 from emqx/dev/1.9.2
Browse files Browse the repository at this point in the history
Sync code from refs/heads/dev/1.9.2 to enterprise
  • Loading branch information
Kinplemelon authored Jul 25, 2024
2 parents 006a090 + c4aec59 commit b40db3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/Rule/rule/useDebugRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export default (): {
const getNewestLog = async () => {
try {
await getCurrentTraceNodesMsg()
if (!needPolling.value) {
return
}
logLastPositionMap.forEach(async (position, node) => {
const { items, meta } = await getTraceLog(traceName, {
node,
Expand Down Expand Up @@ -174,9 +177,9 @@ export default (): {
}

const handleStopTest = () => {
deleteCurrentTrace()
needPolling.value = false
logLastPositionMap.clear()
deleteCurrentTrace()
}

onUnmounted(() => {
Expand Down

0 comments on commit b40db3c

Please sign in to comment.