How do I get the title of each child app in a debug statement?(solved)

I am trying to see which of my child apps are not responding to the parent app sending data:

childApps.each {child ->
debuglog "Sending TStat Change to ${child}"
child.MainTstatStateChange(state.mainState)
pause(500)
}

it results in:

app:16982019-05-27 04:49:13.443 pm debugSending TStat Change to com.hubitat.app.InstalledAppWrapper@5abe0d13
app:16982019-05-27 04:49:12.923 pm debugSending TStat Change to com.hubitat.app.InstalledAppWrapper@1a2f0369
app:16982019-05-27 04:49:12.404 pm debugSending TStat Change to com.hubitat.app.InstalledAppWrapper@26534cb5
app:16982019-05-27 04:49:11.890 pm debugSending TStat Change to com.hubitat.app.InstalledAppWrapper@5d0d7b1c
app:16982019-05-27 04:49:11.350 pm debugSending TStat Change to com.hubitat.app.InstalledAppWrapper@75d1f91

I'd prefer the name of the child app to display. What's the correct fix to:

debuglog "Sending TStat Change to ${child}"

Thanks!

Why? The app number on the left is clickable to only see the logs from that app.

Personally, I like human readable messages :slight_smile:

But I solved it child.label

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.