forked from Krautspace/doorstatus
statusd.py: add logging message to change_status()
This commit is contained in:
parent
6143456d35
commit
22f3d4e75b
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ def read_api(api):
|
||||||
param 1: string
|
param 1: string
|
||||||
return: string or boolean
|
return: string or boolean
|
||||||
'''
|
'''
|
||||||
|
logging.debug('Open API file: {}'.format(api))
|
||||||
if os.access(api, os.R_OK):
|
if os.access(api, os.R_OK):
|
||||||
logging.debug('API is readable')
|
logging.debug('API is readable')
|
||||||
with open(api, 'r') as api_file:
|
with open(api, 'r') as api_file:
|
||||||
|
|
Loading…
Reference in a new issue