Skip to main content

get_level

Return the minimum level of messages to be recorded.

The default level is the MESSAGE_LEVEL setting. If this is not found, use the INFO level.

def get_level(
request: HttpRequest
) - > int

Return the minimum level of messages to be recorded. The default level is the MESSAGE_LEVEL setting. If this is not found, use the INFO level.

Parameters

NameTypeDescription
requestHttpRequestThe current HTTP request object used to retrieve the message storage backend.

Returns

TypeDescription
intThe integer constant representing the minimum message level threshold currently configured for the request storage.