From e08eaa8fddfef6bdbf5542dbd43ce05889036336 Mon Sep 17 00:00:00 2001 From: Rob Carver Date: Thu, 18 Jan 2024 08:45:18 +0000 Subject: [PATCH] attempt to fix log error --- sysdata/parquet/parquet_futures_per_contract_prices.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdata/parquet/parquet_futures_per_contract_prices.py b/sysdata/parquet/parquet_futures_per_contract_prices.py index 580574c226..c508e715ba 100644 --- a/sysdata/parquet/parquet_futures_per_contract_prices.py +++ b/sysdata/parquet/parquet_futures_per_contract_prices.py @@ -86,7 +86,6 @@ def _write_prices_at_frequency_for_contract_object_no_checking( futures_price_data: futuresContractPrices, frequency: Frequency, ): - log = futures_contract_object.log(self.log) ident = from_contract_and_freq_to_key( futures_contract_object, frequency=frequency ) @@ -98,14 +97,15 @@ def _write_prices_at_frequency_for_contract_object_no_checking( data_to_write=futures_price_data_as_pd, ) - log.debug( + self.log.debug( "Wrote %s lines of prices for %s at %s to %s" % ( len(futures_price_data), str(futures_contract_object.key), str(frequency), str(self), - ) + ), + **futures_contract_object.log_attributes() ) def get_contracts_with_merged_price_data(self) -> listOfFuturesContracts: