Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
Signed-off-by: phuoc <[email protected]>
  • Loading branch information
phuocbitmark committed May 6, 2024
1 parent 869823e commit 14e5f90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/service/mdns_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class MDnsService {

Future<List<CanvasDevice>> findCanvas() async {
final devices = <CanvasDevice>[];
log.info('[MDnsService] Looking for devices');
await _client.start();
await _client
.lookup<PtrResourceRecord>(
Expand All @@ -20,7 +21,7 @@ class MDnsService {
in _client.lookup<TxtResourceRecord>(
ResourceRecordQuery.text(record.domainName),
)) {
log.info('Found device: ${txt.text}');
log.info('[MDnsService] Found device: ${txt.text}');
final name = record.domainName.split('.').first;
final text = txt.text;
final attributes = text.split('\n')
Expand Down

0 comments on commit 14e5f90

Please sign in to comment.