Logging middleware is slow
See original GitHub issueSo redux-logger
has already been included in this app and it does slow the simulator down. The introduction of remote-redux-devtools
is now making things significantly slower.
I tried setting up environment variables using babel-plugin-transform-inline-environment-variables and separate script commands (yarn start ios:logger
and yarn start ios:devtools
) which will include the middleware separately and only when those commands were run. However process.env
only seemed defined for NODE_ENV
and nothing else.
Will really appreciate if someone can help find a way to conditionally add separate logging middleware instead of having them included everytime we run yarn run ios
or yarn run android
.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Middleware Logging is too slow · Issue #852 · actix/actix-web
Hi. I use actix, and I write code is too slow when using logging middleware Should I fix this? platform OS: Debian 4.9.130-2...
Read more >Net Core - Why exception middleware is so slow?
After some tests, I havent found the way to demonstrate it, but it seems the problem is about debug mode in local machine...
Read more >Don't let ASP.NET Core Console Logging Slow your App down
NET Core 2.x Console logging is very, very slow when it is set to Information or worse Debug . The default ASP.NET Core...
Read more >Logging Into FMW Control Very Slow - My Oracle Support
After entering username/password into the FMWC page, http://<server>:port/em, it take a really, really long time to log into the system. The $ ...
Read more >.NET Logging: Best Practices for your .NET Application ...
Now we need to configure our logging middleware part to write to a JSON file ... When you do need to write log...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In
package.json
file there are:@housseindjirdeh If you remove
redux-dev-tools
it is no longer needed? Now the error is given, after installation:I can’t thank the both of you enough for taking a look into this 🙌
@patw0929 agreed I think having one solution for this application is sufficient. Unfortunately I’m seeing the same error as @lex111 in that it seems to return
pin: undefined
and I’m not sure why (however I did see it work once yesterday so I’m not sure what caused it to break).I just merged in a commit removing
redux-dev-tools
asredux-logger
is a lot more lightweight. Although you’re most likely used to using it @patw0929, please feel free to use it for development and just not merge it in for future PRs. I’m happy to later explore an option to have it included in the app instead oflogger
and make sure it works for everybody.