mirror of https://github.com/minio/minio.git
cd152f404a
This commit prevents complete server failures caused by `logger.CriticalIf` calls. Instead of calling `os.Exit(1)` the function now executes a panic with a special value indicating that a critical error happend. At the top HTTP handler layer panics are recovered and if its a critical error the client gets an InternalServerError status code. Further this allows unit tests to cover critical-error code paths. |
||
---|---|---|
.. | ||
logger.go | ||
logonce.go | ||
reqinfo.go | ||
utils.go |