Skip to content

Commit 05a151d

Browse files
authored
Merge pull request #827 from ThibaultDECO/patch-1
logging level at WARNING by default
2 parents f577794 + 0eda275 commit 05a151d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmdstanpy/stanfit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def from_csv(
267267
runset._set_retcode(i, 0)
268268
return CmdStanPathfinder(runset)
269269
else:
270-
get_logger().info(
270+
get_logger().warning(
271271
'Unable to process CSV output files from method %s.',
272272
(config_dict['method']),
273273
)

cmdstanpy/utils/logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ def get_logger() -> logging.Logger:
1616
if not logger.hasHandlers():
1717
# send all messages to handlers
1818
logger.setLevel(logging.DEBUG)
19-
# add a default handler to the logger to INFO and higher
19+
# add a default handler to the logger to WARNING and higher
2020
handler = logging.StreamHandler()
21-
handler.setLevel(logging.INFO)
21+
handler.setLevel(logging.WARNING)
2222
handler.setFormatter(
2323
logging.Formatter(
2424
"%(asctime)s - %(name)s - %(levelname)s - %(message)s",

0 commit comments

Comments
 (0)