Skip to content

Commit

Permalink
- Added output indicating local token is being used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellh0079 committed Nov 30, 2023
1 parent 17b46ab commit 4f7410f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pylot/plugins/helpers/pylot_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def get_cumulus_api_instance(cls):
token_file = f'{token_dir}token'
token = None
if os.path.isfile(token_file):
print(f'Using local token: {token_file}')
file_stat = os.stat(token_file)
if int(time()) - int(file_stat.st_mtime) < 3600:
with open(token_file, 'r', encoding='utf-8') as _file:
Expand Down

0 comments on commit 4f7410f

Please sign in to comment.