Update API endpoints for camera2 and enhance logging options in USDA Vision System
- Changed camera1 references to camera2 in API endpoint documentation for start and stop recording. - Added debug and verbose logging options in the USDA Vision System to improve debugging capabilities. - Updated TopNavbar component for improved user experience with cursor pointer styling.
This commit is contained in:
@@ -245,6 +245,8 @@ def main():
|
||||
parser = argparse.ArgumentParser(description="USDA Vision Camera System")
|
||||
parser.add_argument("--config", type=str, help="Path to configuration file", default="config.json")
|
||||
parser.add_argument("--log-level", type=str, choices=["DEBUG", "INFO", "WARNING", "ERROR"], help="Override log level", default=None)
|
||||
parser.add_argument("--debug", action="store_true", help="Enable debug mode (sets log level to DEBUG)")
|
||||
parser.add_argument("--verbose", action="store_true", help="Enable verbose logging (sets log level to DEBUG and enables additional debug output)")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -252,7 +254,13 @@ def main():
|
||||
system = USDAVisionSystem(args.config)
|
||||
|
||||
# Override log level if specified
|
||||
if args.log_level:
|
||||
if args.debug or args.verbose:
|
||||
logging.getLogger().setLevel(logging.DEBUG)
|
||||
# Enable debug mode in the system
|
||||
if hasattr(system.config.system, 'debug_mode'):
|
||||
system.config.system.debug_mode = True
|
||||
print("🐛 Debug mode enabled - verbose logging active")
|
||||
elif args.log_level:
|
||||
logging.getLogger().setLevel(getattr(logging, args.log_level))
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user