Updated logging within discover_new_device() to record device that attempted to discover device

Updated logging within discover_new_device() to record device that attempted to discover device
This commit is contained in:
cahluor
2017-04-18 22:43:55 +02:00
committed by Neil Lathwood
parent a2f74c91a8
commit 2ced131cf5

View File

@@ -79,7 +79,7 @@ function discover_new_device($hostname, $device = '', $method = '', $interface =
} catch (HostExistsException $e) {
// already have this device
} catch (Exception $e) {
log_event("$method discovery of " . $hostname . " ($ip) failed - " . $e->getMessage(), null, null, 5);
log_event("$method discovery of " . $hostname . " ($ip) failed - " . $e->getMessage(), $device['device_id'], 'discovery', 5);
}
} else {
d_echo("$ip not in a matched network - skipping\n");