Skip to content

Commit

Permalink
Fix adapter name logging. Koenkk/zigbee2mqtt#2145
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Oct 16, 2019
1 parent fc75484 commit 504e5c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapter/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class Adapter extends events.EventEmitter {
for (const candidate of adapters) {
const path = await candidate.autoDetectPath();
if (path) {
debug(`Auto detected path '${path}' from adapter '${candidate}'`);
debug(`Auto detected path '${path}' from adapter '${candidate.name}'`);
serialPortOptions.path = path;
break;
}
Expand All @@ -47,7 +47,7 @@ abstract class Adapter extends events.EventEmitter {
// Determine adapter to use
for (const candidate of adapters) {
if (await candidate.isValidPath(serialPortOptions.path)) {
debug(`Path '${serialPortOptions.path}' is valid for '${candidate}'`);
debug(`Path '${serialPortOptions.path}' is valid for '${candidate.name}'`);
adapter = candidate;
}
}
Expand Down

0 comments on commit 504e5c0

Please sign in to comment.