question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logging middleware is slow

See original GitHub issue

So 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:closed
  • Created 6 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
lex111commented, Jul 16, 2017

In package.json file there are:

“postinstall”: “remotedev-debugger --hostname localhost --port 5678 --injectserver”

@housseindjirdeh If you remove redux-dev-tools it is no longer needed? Now the error is given, after installation:

$ remotedev-debugger --hostname localhost --port 5678 --injectserver
sh: 1: remotedev-debugger: not found
error Command failed with exit code 127.
2reactions
housseindjirdehcommented, Jul 16, 2017

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 as redux-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 of logger and make sure it works for everybody.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found