
from .processor import MinidumpProcessor

from uwsgidecoratorsfallback import spool

import logging

logger = logging.getLogger(__name__)

@spool
def do_process_uploaded_crash(*args, **kwargs):
    minproc = MinidumpProcessor()
    minproc.process(kwargs['crash_id'])
    logger.info('processed: %s' % (kwargs['crash_id']))

# vim:set shiftwidth=4 softtabstop=4 expandtab: */


from .processor import MinidumpProcessor

from uwsgidecoratorsfallback import spool

import logging

logger = logging.getLogger(__name__)

@spool
def do_process_uploaded_crash(env):
    minproc = MinidumpProcessor()
    minproc.process(env['crash_id'])
    logger.info('processed: %s' % (env['crash_id']))

# vim:set shiftwidth=4 softtabstop=4 expandtab: */

Revert "make the uwsgi spooler code also work with the fallback"
Revert "make the uwsgi spooler code also work with the fallback"

This reverts commit 84ab847b444fbd41b9cc17e5c79a609efdcdf6cf.

  
  from .processor import MinidumpProcessor
  
  from uwsgidecoratorsfallback import spool
  
  import logging
  
  logger = logging.getLogger(__name__)
  
  @spool
- def do_process_uploaded_crash(*args, **kwargs):
+ def do_process_uploaded_crash(env):
      minproc = MinidumpProcessor()
-     minproc.process(kwargs['crash_id'])
+     minproc.process(env['crash_id'])
-     logger.info('processed: %s' % (kwargs['crash_id']))
+     logger.info('processed: %s' % (env['crash_id']))
  
  # vim:set shiftwidth=4 softtabstop=4 expandtab: */
  
Revert "make the uwsgi spooler code also work with the fallback"
## Code Before:

from .processor import MinidumpProcessor

from uwsgidecoratorsfallback import spool

import logging

logger = logging.getLogger(__name__)

@spool
def do_process_uploaded_crash(*args, **kwargs):
    minproc = MinidumpProcessor()
    minproc.process(kwargs['crash_id'])
    logger.info('processed: %s' % (kwargs['crash_id']))

# vim:set shiftwidth=4 softtabstop=4 expandtab: */

## Instruction:
Revert "make the uwsgi spooler code also work with the fallback"
## Code After:

from .processor import MinidumpProcessor

from uwsgidecoratorsfallback import spool

import logging

logger = logging.getLogger(__name__)

@spool
def do_process_uploaded_crash(env):
    minproc = MinidumpProcessor()
    minproc.process(env['crash_id'])
    logger.info('processed: %s' % (env['crash_id']))

# vim:set shiftwidth=4 softtabstop=4 expandtab: */
