diff --git a/dmrlink.py b/dmrlink.py index 9e47691..707293a 100755 --- a/dmrlink.py +++ b/dmrlink.py @@ -600,19 +600,11 @@ if REPORTS['REPORT_NETWORKS'] == 'PICKLE': file.close() except IOError as detail: logger.error('I/O Error: %s', detail) - -''' -JSON DOES NOT WORK, AND MAY NEVER... NEED TO FIX IT OR REMOVE IT + elif REPORTS['REPORT_NETWORKS'] == 'JSON': def reporting_loop(): logger.info('Periodic Reporting Loop Started (JSON)') - try: - with open(REPORTS['REPORT_PATH']+'dmrlink_stats.json', 'wb') as file: - pass - file.close() - except IOError as detail: - logger.error('I/O Error: %s', detail) -''' + elif REPORTS['REPORT_NETWORKS'] == 'REDIS': def reporting_loop(): logger.debug('Periodic Reporting Loop Started (REDIS)')