Skip to content
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

entity details #1158

Merged
merged 19 commits into from
Aug 30, 2023
Merged
Prev Previous commit
Next Next commit
Update analytics.py
  • Loading branch information
sayan1101 authored Aug 27, 2023
commit 457d50daf1ee4b7654516e42de94b48ce39425dd
4 changes: 2 additions & 2 deletions superagi/controllers/analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_tool_logs(tool_name: str, organisation=Depends(get_user_organisation)):
try:
return ToolsHandler(session=db.session, organisation_id=organisation.id).get_tool_events_by_tool_name(tool_name)
except Exception as e:
logging.error(f"Error while getting tool log details: {str(e)}")
logging.error(f"Error while getting tool event details: {str(e)}")
if hasattr(e, 'status_code'):
raise HTTPException(status_code=e.status_code, detail=e.detail)
else:
Expand All @@ -96,7 +96,7 @@ def get_knowledge_logs(knowledge_name: str, organisation=Depends(get_user_organi
try:
return KnowledgeHandler(session=db.session, organisation_id=organisation.id).get_knowledge_events_by_name(knowledge_name)
except Exception as e:
logging.error(f"Error while getting tool log details: {str(e)}")
logging.error(f"Error while getting knowledge event details: {str(e)}")
if hasattr(e, 'status_code'):
raise HTTPException(status_code=e.status_code, detail=e.detail)
else:
Expand Down