How do I get this madness to stop?
Answered
Sinhala Hound posted this in #help-forum
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?
Answered by Anay-208 | Ping on replies
IIRC you can remove logging attribute, as it is false by default
21 Replies
Sinhala HoundOP
logging: disabled does not seem to work, at least not in next 14.x
Can you send a screenshot of console + code
Sinhala HoundOP
Whahh
okay, logging: false DID work
but I get an error :
Nope, I was wrong... it splat the GET requests right after
@Sinhala Hound okay, logging: false DID work
IIRC you can remove logging attribute, as it is false by default
Answer
Sinhala HoundOP
"remove login attribute" - I don't follow
oh, logging
Oh interesting
Sinhala HoundOP
okay, that makes it better
Any fetch requests that are restored from the Server Components HMR cache are not logged by default.
Sinhala HoundOP
it still logs every page access, but that's to be expected
Whats your next version
Sinhala HoundOP
▲ Next.js 14.2.16
Sinhala HoundOP
Thanks, removing it solves it