feat: enhance logging in AIAgent for quiet mode
- Added functionality to suppress logging noise from specific modules when in quiet mode, improving user experience in CLI. - Updated terminal_tool.py to change the log level for fallback directory usage from warning to debug, providing clearer context without cluttering logs.
This commit is contained in:
parent
5c2926102b
commit
8f6788474b
2 changed files with 15 additions and 2 deletions
|
|
@ -93,8 +93,8 @@ def _get_scratch_dir() -> Path:
|
|||
logger.info("Using /scratch for sandboxes: %s", user_scratch)
|
||||
return user_scratch
|
||||
|
||||
# Fall back to /tmp
|
||||
logger.warning("/scratch not available, using /tmp (limited space)")
|
||||
# Fall back to /tmp (only relevant for Singularity/HPC sandboxes)
|
||||
logger.debug("/scratch not available, using /tmp for sandboxes")
|
||||
return Path(tempfile.gettempdir())
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue