Skip to content

Commit

Permalink
Put logging.debug back in
Browse files Browse the repository at this point in the history
  • Loading branch information
rpsimeon34 committed Mar 12, 2024
1 parent a43f4a2 commit 27df3c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fsspec_xrootd/xrootd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import asyncio
import io
import logging
import os.path
import warnings
from collections import defaultdict
Expand Down Expand Up @@ -824,6 +825,11 @@ def _locate_sources(self, logical_filename: str) -> list[str]:
len(self.fs.valid_sources) == 0
):
hosts.append(clean_address)
logging.debug(f"Added host {clean_address} to _hosts")
else:
logging.debug(
f"Host {clean_address} not in valid_sources {self.fs.valid_sources}"
)
if len(hosts) == 0:
err_msg = f"XRootD error: No hosts for file {logical_filename} found using XRootD server {self.fs.storage_options['hostid']}"
if len(self.fs.valid_sources) > 0:
Expand Down

0 comments on commit 27df3c3

Please sign in to comment.