Skip to content

Commit ff777ef

Browse files
author
victor machado
committed
more printing in slurm output
1 parent 6b2490d commit ff777ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

froster/froster.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3266,6 +3266,7 @@ def _index_locally(self, folder):
32663266
else:
32673267
print(f'\nIndexing folder "{folder}"...', flush=True)
32683268

3269+
print("FUNCTION: _index_locally")
32693270
# Get the path to the hotspots CSV file
32703271
folder_hotspot = self.get_hotspots_path(folder)
32713272
print(f"_index_locally: folder_hotspot: {folder_hotspot}")
@@ -5171,7 +5172,7 @@ def get_hotspots_path(self, folder):
51715172

51725173
# create hotspots directory if it does not exist
51735174
os.makedirs(hotspotdir, exist_ok=True, mode=0o775)
5174-
5175+
print("FUNCTION: get_hotspots_path")
51755176
print(f'get_hotspots_path: Hotspots directory: {hotspotdir}')
51765177
print(f'get_hotspots_path: Folder: {folder}')
51775178
print(f'get_hotspots_path: hsfile: {self._get_hotspots_file(folder)}')
@@ -5185,14 +5186,16 @@ def _get_hotspots_file(self, folder):
51855186
mountlist = self._get_mount_info()
51865187
traildir = ''
51875188
hsfile = folder.replace('/', '+') + '.csv'
5188-
print(f'_get_hotspots_file: hsfile: {hsfile}')
5189+
print("FUNCTION: _get_hotspots_file")
5190+
print(f'_get_hotspots_file: hsfile pre: {hsfile}')
51895191
for mnt in mountlist:
51905192
if folder.startswith(mnt['mount_point']):
51915193
traildir = self._get_last_directory(mnt['mount_point'])
51925194
hsfile = folder.replace(mnt['mount_point'], '')
51935195
hsfile = f'@{traildir}+{hsfile}'
51945196
if len(hsfile) > 255:
51955197
hsfile = f'{hsfile[:25]}.....{hsfile[-225:]}'
5198+
print(f'_get_hotspots_file: hsfile post: {hsfile}')
51965199
return hsfile
51975200

51985201
def _walker(self, top, skipdirs=['.snapshot',]):

0 commit comments

Comments
 (0)