Comments (4)
yes, try to find more details here
https://github.com/zombocom/rack-timeout/blob/main/doc/logging.md
PS: Rack::Timeout::Logger.disable
from rack-timeout.
Mhh, this works only conditionally. I can disable logging and assign my own logger. But what does not work is to assign my logger and change the logging level.
Rack::Timeout::Logger.level = Logger::DEBUG
Rack::Timeout::Logger.logger = $Logger
still logs with level Info.
from rack-timeout.
try to filter by env[::Rack::Timeout::ENV_INFO_KEY].state
inside Rack::Timeout.register_state_change_observer
block
from rack-timeout.
I was looking for a way to make the logger only log when there was an exceptional case. I added:
Rack::Timeout::Logger.level = Logger::ERROR
in an initializer. Testing locally, this seems to cause only error-level (or higher) log messages to be printed.
@marek22k maybe you should flip the statements you listed, since the first one changes the log level of the rack-timeout
default logger, and the second changes the logger to your custom $Logger
(which uses whatever log level $Logger
was already set to.)
[Could be wrong, and not a maintainer of this project. :) ]
from rack-timeout.
Related Issues (20)
- Improve rack-timeout docs to map raised exceptions to desired status code HOT 11
- Request still running/completing after timeout? HOT 5
- Proposal to deprecate `term_on_timeout: false` HOT 7
- Broken ActiveRecord connections after a timeout HOT 4
- Detect if the middleware is already loaded and prevent it from being loaded twice HOT 9
- Unicorn graceful shutdown seems incompatible with `TERM` usage HOT 4
- Push 0.6.1 to Rubygems HOT 4
- Prefer sending SIGKILL over SIGTERM to a process HOT 2
- is "active" observer turned off for non-debug? HOT 5
- PR needed/wanted: Incompatibility with Ruby on Windows HOT 1
- [Feature Request] Optionally notify observers only HOT 4
- Request: timeout exempt requests HOT 1
- problem with unicorn graceful restart HOT 3
- possibility to timeout only for GET requests ? HOT 1
- Puma and rack-timeout results in a null pointer after running for some time HOT 1
- ArgumentError: wrong number of arguments (given 2, expected 1) with Ruby 3.2.2 and Rails 6.1.4 HOT 2
- Question: RACK_TIMEOUT_TERM_ON_TIMEOUT on one cluster HOT 1
- RACK_TIMEOUT_TERM_ON_TIMEOUT=0 still does not allow TruffleRuby to run HOT 2
- Dynamic service_timeout HOT 2
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 rack-timeout.