Suppress 404 messages for /favicon.ico

Hi All,

I’m using K6 Browser to test an app, the app doesn’t have favicon.ico files, the messages for these missing files fill my console during tests. I was wondering if there was a way to ignore all 404s that end in /favicon.ico? (the various examples I’ve tried to generate through GPTs haven’t been helpful, since they seem to define specific URL checks, where the 404s I see occur multiple times during a flow and I’d like a global catch-all)

Thanks

Hi @deftdawg,

Welcome the forum!

Thanks for your question. If i understood your question correctly, you want to filter out the logs that are related to failed attempts at getting favicon.ico? We have heard similar requests recently and at the moment there isn’t a way to ignore some of the logs. We are hoping to work on two issues though that should make it better by:

  1. Either aborting on requests before they’re sent (e.g. abort all /favicon.ico requests) with a new API page.route (Filter out request metrics by their URL tag · Issue #1434 · grafana/xk6-browser · GitHub), which would avoid logging the failed request.
  2. And by reducing the overall noise in the logs (User friendly error messages · Issue #1483 · grafana/xk6-browser · GitHub).

Sorry I couldn’t be of more help this time.

Best,
Ankur