Comments (8)
Thank you. I found pip package aiorpcX installed in my system and I located session.py file successfully.
However, other INFO messages (below), are not in that file. I checked all other .py files in aiorpcX too.
Can someone make a commit and fix the problem I mentioned please?
Messages like:
"changing task concurrency" should go to debug level (edit sessionpy in aiorpcX)
"SSL xx.xx.xx.xx:xx, 6 total" should go to debug level (don't know where to fix that..)
"TCP xx.xx.xx.xx:xx, 7 total" should go to debug level (don't know where to fix that..)
"disconnected whilst throttled" (don't know where to fix that..) this message thousand times is totally meaningless and definitely should go to debug level.
from electrumx.
This message indicates that someone new has connected to your server. If you want to remove the message you can either block incoming connections to your server, or do what you're already doing with the logging level.
from electrumx.
Thank you for the descriptor.
Does anyone vouch to lower these messages to the DEBUG level? They certainly make reading the log a bit harder to read, and with features such as ANON_LOGS enabled, one could argue that they are not too useful altogether for a public server operator.
Open to discussion
from electrumx.
I experienced exactly the same issue.
My description (I created duplicate issue, closed now):
In default setting, ElectrumX is spamming messages like this to INFO output level:
INFO:ElectrumX:[1195011] changing task concurrency from 10 to 8
INFO:ElectrumX:[1195011] SSL 186.3.207.118:52858, 678 total
Yes my friends, this is line number 1,195,011. 1.2M output messages like this and 3M of lines (counted by cat -n command) in total (including other messages, which are counted separately, as I understand). This is on default INFO level. When I switch to WARNING level (one level up), I see nothing, no informative messages about peers, network, configuration, nothing, just errors when peer is blacklisted or something like that. I want to see relevant information, starting and DB info, connection info, peer summary (configured via LOG_SESSIONS variable). But when I go back to LOG_LEVEL=info, I will have 3M of messages per day, which amounted to 250MB on the disk. That's like 34 messages per second!
Can we please move messages like:
INFO:ElectrumX:[1195011] changing task concurrency from 10 to 8
INFO:ElectrumX:[1195011] SSL 186.3.207.118:52858, 678 total
to DEBUG level, instead INFO level? This is certainly DEBUG message and I should not see it during normal operation. Not a million of them per day, at least. Thanks!
from electrumx.
Any update on this?
Does anyone know how to comment-out this spam messages, in source files? I'd like to fix it, I am not a developer, unfortunately. Thanks.
from electrumx.
@curious0101 relevant lines are here:
electrumx/electrumx/server/session.py
Lines 837 to 838 in 9ca59fa
https://github.com/kyuupichan/aiorpcX/blob/bd2185aaeb7cd8b18e24866c4a04387650ff4834/aiorpcx/session.py#L209
I find the session-count line somewhat helpful when looking at long logs when e.g. a submodule dies, to see if new sessions are still being established at certain times. Perhaps it could be rate-limited to e.g. one line per minute; or maybe I should just set the log level to DEBUG for my own servers (and set that log line to DEBUG too).
from electrumx.
Thanks for your reply.
I am a bit confused, this is spesmilo electrumX issue, but you linked file in kyuupichan electrumX?
from electrumx.
from electrumx.
Related Issues (20)
- Build fails on Fedora 39 (worked on 38) - plyvel doesn't build HOT 1
- new release, new git tag HOT 1
- error when installing on Debian Stable: This environment is externally managed HOT 2
- Please use a LRU library available in major distributions HOT 1
- OverflowError while running python electrumx_server in latest version, previuos veron is working. HOT 1
- version not the latest HOT 2
- ssl ports randomly close HOT 5
- ElectrumX Deutsche eMark (DEM) doesn't work HOT 1
- DESERIALIZER
- PermissionError: [Errno 13] Permission denied HOT 4
- electrumx crashes on debian 12 HOT 3
- Issue Report: Inaccurate Data Retrieval for Specific Addresses
- server start normaly but after 4 or 5 mit it show this error. plaese provide correct answers. HOT 4
- please solve this. HOT 3
- electrumx_rpc returns unknown method for every command HOT 2
- Are High Disk Writes Expected? HOT 3
- Abnormal termination with hashXs[hashX].remove(tx_hash) KeyError
- Electrumx won't start because UTXO not found in "h" table, but it's a confirmed tx HOT 1
- I have a PIVX frok that does not work! HOT 13
- Repeated failures to connect to bitcoin-core - how to debug? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electrumx.