@@ -219,7 +219,7 @@ async def sync_file(
219219 return entity , checksum
220220
221221 except Exception as e : # pragma: no cover
222- logger .exception ( "Failed to sync file" , path = path , error = str (e ))
222+ logger .error ( f "Failed to sync file: path={ path } , error={ str (e )} " )
223223 return None , None
224224
225225 async def sync_markdown_file (self , path : str , new : bool = True ) -> Tuple [Optional [Entity ], str ]:
@@ -427,7 +427,7 @@ async def resolve_relations(self):
427427 logger .info ("Resolving forward references" , count = len (unresolved_relations ))
428428
429429 for relation in unresolved_relations :
430- logger .debug (
430+ logger .trace (
431431 "Attempting to resolve relation "
432432 f"relation_id={ relation .id } "
433433 f"from_id={ relation .from_id } "
@@ -495,7 +495,7 @@ async def scan_directory(self, directory: Path) -> ScanResult:
495495 result .files [rel_path ] = checksum
496496 result .checksums [checksum ] = rel_path
497497
498- logger .debug (f"Found file, path={ rel_path } , checksum={ checksum } " )
498+ logger .trace (f"Found file, path={ rel_path } , checksum={ checksum } " )
499499
500500 duration_ms = int ((time .time () - start_time ) * 1000 )
501501 logger .debug (
@@ -505,4 +505,4 @@ async def scan_directory(self, directory: Path) -> ScanResult:
505505 f"duration_ms={ duration_ms } "
506506 )
507507
508- return result
508+ return result
0 commit comments