优化日志

lowmem
Matthew 2 months ago
parent d930f65393
commit eeabd15b87

@ -1613,9 +1613,9 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
// Wait about 10s // Wait about 10s
for (int idx = 0; idx < 84; idx++) for (int idx = 0; idx < 84; idx++)
{ {
XYLOG(XYLOG_SEVERITY_INFO, "Before GetEthnetHandle %d IMGID=%u", idx, localPhotoInfo.photoId); // XYLOG(XYLOG_SEVERITY_INFO, "Before GetEthnetHandle %d IMGID=%u", idx, localPhotoInfo.photoId);
netHandle = GetEthnetHandle(); netHandle = GetEthnetHandle();
XYLOG(XYLOG_SEVERITY_INFO, "After GetEthnetHandle %d NetHandle=%llu IMGID=%u", idx, netHandle, localPhotoInfo.photoId); // XYLOG(XYLOG_SEVERITY_INFO, "After GetEthnetHandle %d NetHandle=%llu IMGID=%u", idx, netHandle, localPhotoInfo.photoId);
if (netHandle != 0) if (netHandle != 0)
{ {
break; break;
@ -1633,15 +1633,16 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
TakePhotoCb(0, localPhotoInfo, "", 0); TakePhotoCb(0, localPhotoInfo, "", 0);
XYLOG(XYLOG_SEVERITY_INFO, "After TakePhotoCb %d IMGID=%u", localPhotoInfo.photoId); // XYLOG(XYLOG_SEVERITY_INFO, "After TakePhotoCb %d IMGID=%u", localPhotoInfo.photoId);
if (m_ethernetFailures > 3) if (m_ethernetFailures > 3)
{ {
time_t rebootTime = GetRebootTime(); time_t rebootTime = GetRebootTime();
if (ts - rebootTime > 1800) if (ts - rebootTime > 1800)
{ {
XYLOG(XYLOG_SEVERITY_INFO, "Before Reboot %d IMGID=%u", localPhotoInfo.photoId); XYLOG(XYLOG_SEVERITY_INFO, "Will Reboot Dev As for too much ehternet failure %d IMGID=%u", m_ethernetFailures, localPhotoInfo.photoId);
// XYLOG(XYLOG_SEVERITY_INFO, "Before Reboot %d IMGID=%u", localPhotoInfo.photoId);
Reboot(REBOOT_TYPE_DEVICE, true, "Ethernet Not Existing"); Reboot(REBOOT_TYPE_DEVICE, true, "Ethernet Not Existing");
XYLOG(XYLOG_SEVERITY_INFO, "After Reboot %d IMGID=%u", localPhotoInfo.photoId); // XYLOG(XYLOG_SEVERITY_INFO, "After Reboot %d IMGID=%u", localPhotoInfo.photoId);
} }
} }

Loading…
Cancel
Save