@@ -149,21 +149,25 @@ def find_files(path: str) -> List[str]:
149149 for file_name in patterns :
150150 pattern = Core .to_case_insensitive_regex (patterns [file_name ]["pattern" ])
151151 file_path = f"{ path } /**/{ pattern } "
152- log .debug (f"Globbing { file_path } " )
152+ # log.debug(f"Globbing {file_path}")
153153 glob_start = time .time ()
154154 glob_files = glob (file_path , recursive = True )
155155 for glob_file in glob_files :
156156 if glob_file not in files :
157157 files .add (glob_file )
158158 glob_end = time .time ()
159159 glob_total_time = glob_end - glob_start
160- log .debug (f"Glob for pattern { file_path } took { glob_total_time :.2f} seconds" )
160+ # log.debug(f"Glob for pattern {file_path} took {glob_total_time:.2f} seconds")
161161
162162 log .debug ("Finished Find Files" )
163163 end_time = time .time ()
164164 total_time = end_time - start_time
165165 log .info (f"Found { len (files )} in { total_time :.2f} seconds" )
166- log .debug (f"Files found: { list (files )} " )
166+ files_list = list (files )
167+ if len (files_list ) > 5 :
168+ log .debug (f"{ len (files_list )} Files found: { ', ' .join (files_list [:5 ])} , ..." )
169+ else :
170+ log .debug (f"{ len (files_list )} Files found: { ', ' .join (files_list )} " )
167171 return list (files )
168172
169173 @staticmethod
@@ -461,15 +465,15 @@ def create_new_diff(
461465 no_change : bool = False
462466 ) -> Diff :
463467 """Create a new diff using the Socket SDK."""
464- log .debug (f"starting create_new_diff with no_change: { no_change } " )
465468 if no_change :
469+ log .debug (f"starting create_new_diff with no_change: { no_change } " )
466470 return Diff (id = "no_diff_id" )
467471
468472 # Find manifest files
469473 files = self .find_files (path )
470474 files_for_sending = self .load_files_for_sending (files , path )
471475
472- log . debug ( f"files: { files } found at path { path } " )
476+
473477 if not files :
474478 return Diff (id = "no_diff_id" )
475479
0 commit comments