Commit 4825a029 authored by Federico Sismondi's avatar Federico Sismondi
Browse files

Homogenized logs

parent 3e6d6092
......@@ -226,7 +226,7 @@ def get_model_water_quality_observed(
# = = = = = = = = OTHER AUX FUNCTIONS = = = = = = = =
def _dump_raw_data_to_filesystem():
app.logger.info('dumping request to FS')
#app.logger.info('dumping request to FS')
try:
filepath = os.path.join(COLLECTION_DIR, '{}.json'.format(int(time.time())))
with open(filepath, encoding='utf-8', mode='w') as f:
......@@ -239,6 +239,7 @@ def _dump_raw_data_to_filesystem():
app.logger.error(e)
return 'error'
app.logger.info("Dumped raw data at file {}".format(filepath))
return 'ok'
......
......@@ -379,7 +379,7 @@ def _update_device_entity(deveui, comment, longitude, latitude, last_reception,
# = = = = = = = = OTHER AUX FUNCTIONS = = = = = = = =
def _dump_raw_data_to_filesystem():
app.logger.info('dumping request to FS')
#app.logger.info('dumping request to FS')
try:
filepath = os.path.join(COLLECTION_DIR, '{}.json'.format(int(time.time())))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment