#NEWLINE# def get_level( request ) : #NEWLINE# #INDENT# '\n    Returns the minimum level of messages to be recorded.\n\n    The default level is the ``MESSAGE_LEVEL`` setting. If this is not found,\n    the ``INFO`` level is used.\n    ' #NEWLINE# if hasattr ( request , '_messages' ) : #NEWLINE# #INDENT# storage = request . _messages #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# storage = default_storage ( request ) #NEWLINE# #UNINDENT# return storage . level