<s> import sys <EOL> from django . core . management . base import BaseCommand <EOL> from django . utils . log import getLogger <EOL> logger = getLogger ( '<STR_LIT>' ) <EOL> class LoggingBaseCommand ( BaseCommand ) : <EOL> """<STR_LIT>""" <EOL> def execute ( self , * args , ** options ) : <EOL> try : <EOL> super ( LoggingBaseCommand , self ) . execute ( * args , ** options ) <EOL> except Exception as e : <EOL> logger . error ( e , exc_info = sys . exc_info ( ) , extra = { '<STR_LIT>' : <NUM_LIT> } ) <EOL> raise </s>
