-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[Newton] Increase usage of Logging over Prints. #4203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev/newton
Are you sure you want to change the base?
[Newton] Increase usage of Logging over Prints. #4203
Conversation
Greptile OverviewGreptile SummaryThis PR systematically replaces Key Changes:
Minor Issues:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant Env as Environment Classes
participant Mgr as Manager Classes
participant Sensor as Sensors/Utils
participant Logger as Python Logger
Note over User,Logger: Logging Integration Flow
User->>Env: Initialize Environment
Env->>Logger: import logging.getLogger(__name__)
Env->>Logger: logger.info("Base environment info")
Env->>Logger: logger.info("Scene manager info")
Env->>Mgr: Load Managers
Mgr->>Logger: import logging.getLogger(__name__)
Mgr->>Logger: logger.info("Action/Observation Manager")
Mgr->>Logger: logger.warning("Failed to get descriptor")
Env->>Sensor: Initialize Sensors
Sensor->>Logger: import logging.getLogger(__name__)
Sensor->>Logger: logger.info("Contact sensor initialized")
User->>Env: Start Simulation
Env->>Logger: logger.info("Starting simulation...")
Env->>Sensor: Setup Newton Manager
Sensor->>Logger: logger.info("Builder/Model info")
Sensor->>Logger: logger.warning("Solver convergence issues")
Env->>Logger: logger.info("Completed setup...")
Logger-->>User: Structured log output
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (2)
-
source/isaaclab/isaaclab/cloner/utils.py, line 63 (link)style: Redundant "WARNING:" prefix in message since
logger.warning()already indicates warning level -
source/isaaclab/isaaclab/managers/action_manager.py, line 304 (link)style: Debug log left in production code - remove or guard with debug flag
14 files reviewed, 2 comments
| "skrl_cfg_entry_point": f"{agents.__name__}:skrl_rough_ppo_cfg.yaml", | ||
| }, | ||
| ) | ||
| # gym.register( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is commented out?
Description
Increase usage of Logging over Prints.
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there