Skip to content

Add Missing Logs Across Platform for Key Events and Actions#235

Closed
avirajsingh7 wants to merge 11 commits intomainfrom
feat/logs
Closed

Add Missing Logs Across Platform for Key Events and Actions#235
avirajsingh7 wants to merge 11 commits intomainfrom
feat/logs

Conversation

@avirajsingh7
Copy link
Copy Markdown
Collaborator

@avirajsingh7 avirajsingh7 commented Jun 18, 2025

This PR introduces comprehensive logging across the platform to improve observability, traceability, and debugging efficiency.

Target issue : #213 and #234

  • Added missing logs in critical modules.
  • Logs follow a structured and consistent format for clarity:
logger.info(
    f"[<module>.<action>] <message> | key1={value1}, key2={value2}, ..."
)
  • Middleware added to automatically log all incoming HTTP requests with metadata
  • Separation of Log Levels based on info, warning, error

@avirajsingh7 avirajsingh7 marked this pull request as draft June 18, 2025 06:00
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 18, 2025

@avirajsingh7 avirajsingh7 marked this pull request as ready for review June 18, 2025 08:33
@avirajsingh7 avirajsingh7 added enhancement New feature or request ready-for-review labels Jun 18, 2025
@avirajsingh7 avirajsingh7 self-assigned this Jun 18, 2025

logger = logging.getLogger(__name__)
router = APIRouter(tags=["private"], prefix="/private")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think that we need to implement logging in this file since it is not being used, and also not needed for project_user route as well since we already have a project user relationship with the api key generation

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets just keep it, may be if we need in future or if we remove code logging will be removed also

logger = logging.getLogger(__name__)


def is_project_admin(session: Session, user_id: int, project_id: int) -> bool:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

This was linked to issues Jun 20, 2025
@avirajsingh7 avirajsingh7 marked this pull request as draft June 24, 2025 08:57
@AkhileshNegi AkhileshNegi deleted the feat/logs branch October 13, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logs Segregation Platform-wide Logging Review and Standardization

3 participants