@@ -201,25 +201,25 @@ def _state_callback(
201201 None
202202 """
203203 try :
204- logging .info ("Entered ledger output callback" )
204+ logging .debug ("Entered ledger output callback" )
205205
206206 # Populate required state based on message type
207207 data = self ._decode_payload (msg )
208208 if "ADS-B" in data :
209- logging .info (f"Processing ADS-B state message data: { data } " )
209+ logging .debug (f"Processing ADS-B state message data: { data } " )
210210 state = json .loads (data ["ADS-B" ])
211211 state ["object_id" ] = state ["icao_hex" ]
212212 state ["object_type" ] = "aircraft"
213213
214214 elif "Decoded AIS" in data :
215- logging .info (f"Processing AIS state message data: { data } " )
215+ logging .debug (f"Processing AIS state message data: { data } " )
216216 state = json .loads (data ["Decoded AIS" ])
217217 state ["object_id" ] = state ["mmsi" ]
218218 state ["object_type" ] = "ship"
219219 state ["track" ] = state ["course" ]
220220
221221 else :
222- logging .info (f"Skipping state message data: { data } " )
222+ logging .debug (f"Skipping state message data: { data } " )
223223 return
224224
225225 # Pop keys that are not required columns
@@ -233,15 +233,15 @@ def _state_callback(
233233 entry .set_index ("object_id" , inplace = True )
234234 if entry .notna ().all (axis = 1 ).bool ():
235235 if not entry .index .isin (self .ledger .index ):
236- logging .info (f"Adding entry state data for object id: { entry .index } " )
236+ logging .debug (f"Adding entry state data for object id: { entry .index } " )
237237 self .ledger = pd .concat ([self .ledger , entry ], ignore_index = False )
238238
239239 else :
240- logging .info (f"Updating entry state data for object id: { entry .index } " )
240+ logging .debug (f"Updating entry state data for object id: { entry .index } " )
241241 self .ledger .update (entry )
242242
243243 else :
244- logging .info (f"Invalid entry: { entry } " )
244+ logging .debug (f"Invalid entry: { entry } " )
245245
246246 except Exception as exception :
247247 # Set exception
@@ -266,7 +266,7 @@ def _publish_ledger(self) -> None:
266266 > self .ledger ["object_type" ].apply (self ._get_max_entry_age )
267267 ].index
268268 if not index .empty :
269- logging .info (f"Dropping entry for object ids: { index } " )
269+ logging .debug (f"Dropping entry for object ids: { index } " )
270270 self .ledger .drop (
271271 index ,
272272 inplace = True ,
@@ -311,11 +311,11 @@ def _send_data(self, data: Dict[str, str]) -> bool:
311311 )
312312 success = self .publish_to_topic (self .ledger_topic , out_json )
313313 if success :
314- logging .info (
314+ logging .debug (
315315 f"Successfully sent data on channel { self .ledger_topic } : { data } "
316316 )
317317 else :
318- logging .info (f"Failed to send data on channel { self .ledger_topic } : { data } " )
318+ logging .debug (f"Failed to send data on channel { self .ledger_topic } : { data } " )
319319 return success
320320
321321 def main (self ) -> None :
0 commit comments