mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-08-26 09:59:40 +00:00
fix: enhance log output in device status to include UUID and timestamp
This commit is contained in:
@ -85,7 +85,12 @@ export class DeviceStatusFirebaseService {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (energyStatus) {
|
if (energyStatus) {
|
||||||
console.log(device.productDevice.prodType, addDeviceStatusDto.log);
|
console.log(
|
||||||
|
device.productDevice.prodType,
|
||||||
|
device.uuid,
|
||||||
|
addDeviceStatusDto.log,
|
||||||
|
new Date().toLocaleDateString('en-CA'), // Format as YYYY-MM-DD
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user