Skip to content

Commit 0915a9d

Browse files
committed
Use logger
1 parent 406c729 commit 0915a9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/bids.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
>>> os.chdir(datadir)
1515
1616
"""
17-
17+
from .. import logging
1818
from .base import (traits,
1919
DynamicTraitedSpec,
2020
Directory,
@@ -30,7 +30,7 @@
3030
else:
3131
have_pybids = True
3232

33-
from warnings import warn
33+
LOGGER = logging.getLogger('workflows')
3434

3535
class BIDSDataGrabberInputSpec(DynamicTraitedSpec):
3636
base_dir = Directory(exists=True,
@@ -165,7 +165,7 @@ def _list_outputs(self):
165165
if self.inputs.raise_on_empty:
166166
raise IOError(msg)
167167
else:
168-
warn(msg)
168+
LOGGER.warning(msg)
169169
filelist = Undefined
170170
else:
171171
outputs[key] = filelist

0 commit comments

Comments
 (0)