Skip to content

Conversation

@GirlBossRush
Copy link
Contributor

@GirlBossRush GirlBossRush commented Jan 5, 2026

Details

tl;dr Fewer console.debug.bind and copy-pasted log prefix strings.

This PR updates our logging approach in the frontend codebase by replacing multiple instances of console.debug.bind(console, "some-component") with an instance of browser-compatible ConsoleLogger static class. Similar to our Pino-based logger in Node.js, this class allows us to create prefixed loggers for different components without the ceremony of function binding.

The motivation behind this came about while debugging Lit's context event system. The goal was to have consistent logging across the codebase that can be easily toggled or filtered in the same API style as our Node.js logging. The browser ConsoleLogger is a step in that direction, providing a familiar interface for logging in the frontend.

Dependents

@GirlBossRush GirlBossRush requested a review from a team as a code owner January 5, 2026 05:01
@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 2c813cb
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/695c25d44fad26000807ecf6
😎 Deploy Preview https://deploy-preview-19185--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 2c813cb
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/695c25d43400ef00085126a3
😎 Deploy Preview https://deploy-preview-19185--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GirlBossRush GirlBossRush changed the title web: Clean up logging. web: Clean up prefixed debugging logs Jan 5, 2026
@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.34%. Comparing base (c3eb401) to head (4575369).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19185      +/-   ##
==========================================
+ Coverage   93.15%   93.34%   +0.18%     
==========================================
  Files         949      949              
  Lines       52254    52254              
==========================================
+ Hits        48676    48774      +98     
+ Misses       3578     3480      -98     
Flag Coverage Δ
conformance 38.78% <ø> (+<0.01%) ⬆️
e2e 44.72% <ø> (+1.30%) ⬆️
integration 23.38% <ø> (-0.06%) ⬇️
unit 91.59% <ø> (+<0.01%) ⬆️
unit-migrate 91.64% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-4575369c1469f465c6f749ef3a8be94de55b9421
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-4575369c1469f465c6f749ef3a8be94de55b9421

Afterwards, run the upgrade commands from the latest release notes.

@GirlBossRush GirlBossRush force-pushed the better-browser-logging branch from 4575369 to 2c813cb Compare January 5, 2026 20:57
@GirlBossRush
Copy link
Contributor Author

Resolved via #19141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants