csells / go_router

The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
https://gorouter.dev
441 stars 96 forks source link

Unable to turn off logging #280

Closed pryshrm closed 2 years ago

pryshrm commented 2 years ago

I am using v 2.5.7 and I see messages like this in the print log of my flutter app:

INFO: GoRouter: getting location for name: "tab", params: {tabid: 1}

I searched in my code and I am sure I am not logging this. I have also set debugLogDiagnostics:false, while creating GoRouter.

How can I turn it off?

csells commented 2 years ago

This is an issue caused by https://github.com/csells/go_router/pull/225. There's another related bug as well: https://github.com/csells/go_router/issues/250

@johnpryan can you take a look?

johnpryan commented 2 years ago

@pryshrm did you do a full restart or just a hot reload? Changes to the debugLogDiagnostics parameter don't get applied unless you do a full restart.