From fab7663ab3810ae0ba2722cf855fcf618a9236cf Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 28 Dec 2018 10:46:48 +0100 Subject: [PATCH] Log when dumping to file (instead of print) --- freqtrade/misc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/misc.py b/freqtrade/misc.py index 77b901be0..23d8732a0 100644 --- a/freqtrade/misc.py +++ b/freqtrade/misc.py @@ -71,7 +71,7 @@ def file_dump_json(filename, data, is_zip=False) -> None: :param data: JSON Data to save :return: """ - print(f'dumping json to "{filename}"') + logger.info(f'dumping json to "{filename}"') if is_zip: if not filename.endswith('.gz'): @@ -82,6 +82,8 @@ def file_dump_json(filename, data, is_zip=False) -> None: with open(filename, 'w') as fp: rapidjson.dump(data, fp, default=str, number_mode=rapidjson.NM_NATIVE) + logger.debug(f'done json to "{filename}"') + def json_load(datafile): """