|
|
@@ -13,6 +13,7 @@ from cipy.common import Context, Factory, Inputs, Outputs, Ref, Status
|
|
|
from cipy.shell import Shell
|
|
|
from cipy.workflow import Job, Matrix, MatrixParams, Workflow
|
|
|
|
|
|
+from . import settings
|
|
|
from ._logging import CIFormatter
|
|
|
|
|
|
_handler = logging.StreamHandler()
|
|
|
@@ -20,7 +21,7 @@ _handler.setFormatter(CIFormatter("%(asctime)s [%(name)s] %(message)s"))
|
|
|
|
|
|
logging.basicConfig(datefmt="%Y-%m-%dT%H:%M:%S.%fZ",
|
|
|
handlers=[ _handler ],
|
|
|
- level=logging.INFO)
|
|
|
+ level=logging.DEBUG if settings.DEBUG else logging.INFO)
|
|
|
|
|
|
__all__ = [
|
|
|
"Call",
|