Closed kolinfluence closed 7 months ago
It should only print logs at ERROR
and WARN
levels by default, what logging outputs were you seeing?
The logging module of gnet
is pluggable, which means that you are free to replace the default logger with your own customized logger. If you want to disable the default logger, you can set the environment variable GNET_LOGGING_LEVEL
to the highest level FatalLevel
(which is "5") before starting your gnet
services.
@panjf2000 it was under ddos attack, i'm using github.com/IceFireDB/redhub which uses gnet.
it doesnt show any logs output. do u think it's doing something without showing anything? i put icefiredb under ants.Submit "goroutine". just wondering if it's advisable to use ants on top of gnet services etc.
Description of new feature
uber zap is giving a lot of mem alloc issues
under ddos load, it's generating a lot of garbage coz of gnet usage. the cpu load is higher than my tls.
Scenarios for new feature
improve performance and mem use
Breaking changes or not?
No
Code snippets (optional)
No response
Alternatives for new feature
i want to continue liking gnet
Additional context (optional)
None.