Next.js Discord

Discord Forum

How do I get this madness to stop?

Answered
Sinhala Hound posted this in #help-forum
Open in Discord
Avatar
Sinhala HoundOP
No matter what combination of settings I put in the next.config.js logging section, I get absolutely spammed with fetch request notices. These are great - when I need them. When I don't, it's just noise. How do I turn this off?
Image
Answered by Anay-208 | Ping on replies
IIRC you can remove logging attribute, as it is false by default
View full answer

21 Replies

Avatar
Sinhala HoundOP
logging: disabled does not seem to work, at least not in next 14.x
Avatar
Can you send a screenshot of console + code
Avatar
Sinhala HoundOP
Image
Image
Whahh
okay, logging: false DID work
but I get an error :
Image
Nope, I was wrong... it splat the GET requests right after
Avatar
@Sinhala Hound okay, logging: false DID work
Avatar
IIRC you can remove logging attribute, as it is false by default
Answer
Avatar
Sinhala HoundOP
"remove login attribute" - I don't follow
oh, logging
Oh interesting
Avatar
Sinhala HoundOP
okay, that makes it better
Avatar
Any fetch requests that are restored from the Server Components HMR cache are not logged by default.
Avatar
Sinhala HoundOP
it still logs every page access, but that's to be expected
Avatar
Whats your next version
Avatar
Sinhala HoundOP
▲ Next.js 14.2.16
Avatar
Sinhala HoundOP
Thanks, removing it solves it