mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-18 05:02:15 +01:00
improving logging (#5)
* small refactoring of error messages * (very) small refactoring of structs instantiation * improving logging with debug messages * using INFO level as default + changing previous debug message to info message
This commit is contained in:
@@ -62,6 +62,13 @@ func TestGetHandlersChain(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestRequestHasNoContentError(t *testing.T) {
|
||||
err := &requestHasNoContentError{}
|
||||
if err.Error() != requestHasNoContentErrorMessage {
|
||||
t.Errorf("Error returned a wrong message: got '%s' want '%s'", err.Error(), requestHasNoContentErrorMessage)
|
||||
}
|
||||
}
|
||||
|
||||
func TestEnforceContentLengthHandler(t *testing.T) {
|
||||
var (
|
||||
req *http.Request
|
||||
|
||||
Reference in New Issue
Block a user