Skip to content

Commit

Permalink
Remove unicode chars
Browse files Browse the repository at this point in the history
As @ArneTR shell doesn't render unicode correctly I remove all chars that might cause problems.
  • Loading branch information
ribalba authored Oct 26, 2023
1 parent 7b1e6aa commit 963eaa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions power_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def sigint_handler(_, __):
sys.exit(2)

stop_signal.set()
logging.info('Terminating all processes. Please be patient, this might take a few seconds.')
logging.info('Terminating all processes. Please be patient, this might take a few seconds.')

def siginfo_handler(_, __):
print(SETTINGS)
Expand Down Expand Up @@ -225,7 +225,7 @@ def upload_data_to_endpoint(local_stop_signal):
for p in payload:
tc.execute('UPDATE measurements SET uploaded = ?, data = NULL WHERE id = ?;', (int(time.time()), p['row_id']))
thread_conn.commit()
logging.debug('Upload 👌')
logging.debug('Uploaded.')
else:
logging.info(f"Failed to upload data: {payload}\n HTTP status: {response.status}")
sleeper(local_stop_signal, SETTINGS['upload_delta']) # Sleep if there is an error
Expand Down Expand Up @@ -389,7 +389,7 @@ def check_DB(local_stop_signal):
else:
logging.error('We are not getting values from the DB for checker thread.')

logging.debug('DB Check')
logging.debug('DB Check')
sleeper(local_stop_signal, interval_sec)

thread_conn.close()
Expand Down Expand Up @@ -440,7 +440,7 @@ def is_power_logger_running():
else:
logging.basicConfig(level=log_level, format='[%(levelname)s] %(asctime)s - %(message)s')

logging.debug('Program started 🎉')
logging.debug('Program started.')
logging.debug(f"Using db: {DATABASE_FILE}")


Expand Down

0 comments on commit 963eaa5

Please sign in to comment.