Skip to content

Commit

Permalink
airport: update ssid summary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Dec 7, 2023
1 parent 8575404 commit 2b5d0b9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions automon/integrations/mac/airport/ssid.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, ssid: dict):
self.SSID = self.SSID_STR
self.WPS_STATE = self.IE_KEY_WPS_SC_STATE

log.debug(f'{self.summary}')
self.summary

def __repr__(self):
return f'{self.summary}'
Expand All @@ -52,9 +52,12 @@ def __lt__(self, other):

@property
def summary(self):
return f'[rssi: {self.DISTANCE} dBm] ' \
f'{self.SSID} ' \
f'[ch: {self.CHANNEL}] ' \
f'[bssid: {self.MAC}] ' \
f'[noise: {self.NOISE}] ' \
f'[age: {self.AGE}] '
summary = f'[rssi: {self.DISTANCE} dBm] ' \
f'{self.SSID} ' \
f'[ch: {self.CHANNEL}] ' \
f'[bssid: {self.MAC}] ' \
f'[noise: {self.NOISE}] ' \
f'[age: {self.AGE}] '

log.debug(f'{summary}')
return summary

0 comments on commit 2b5d0b9

Please sign in to comment.