MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / getLogSource

Function getLogSource

src/commands/edge/drivers/logcat.ts:177–185  ·  view source on GitHub ↗
(driverId?: string)

Source from the content-addressed store, hash-verified

175 const getDrivers = async (): Promise<DriverInfo[]> => (await request(driversURL.toString())).data
176
177 const getLogSource = (driverId?: string): string => {
178 const sourceURL = logsURL
179
180 if (driverId) {
181 sourceURL.searchParams.set('driver_id', driverId)
182 }
183
184 return sourceURL.toString()
185 }
186
187 // ensure host verification resolves before connecting to the event source
188 const installedDrivers = await getDrivers()

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected