log_data_in_file is helpful of its own when debugging