old_contents: import coloredlogs
  
  from flask import Flask
  from flask_cors import CORS
  from flask_marshmallow import Marshmallow
  from flask_session import Session
  
  from .utils import ResourceCache
  
  import sentry_sdk
  from sentry_sdk.integrations.flask import FlaskIntegration
  
  app = Flask("salesmonkey", instance_relative_config=True)
  
  CONFIG = {
      'SESSION_TYPE': 'redis'
  }
  
  app.config.update(CONFIG)
  app.config.from_pyfile('settings.cfg')
  
  if 'SENTRY_DSN' in app.config:
      sentry_sdk.init(
          dsn=app.config['SENTRY_DSN'],
          integrations=[FlaskIntegration()]
      )
      print("yeah")
  else:
      print("no sentry")
  
  
  if app.config['DEBUG']:
      coloredlogs.install(level='DEBUG')
  else:
      coloredlogs.install(level='INFO')
  
  ma = Marshmallow(app)
  
  cache = ResourceCache()
  
  # config={'CACHE_TYPE': 'redis',
  #                                   'CACHE_REDIS_DB': app.config['FLASK_CACHE_REDIS_DB'],
  #                                   'CACHE_REDIS_HOST': app.config['FLASK_CACHE_REDIS_HOST']})
  
  
  session = Session()
  
  cors = CORS(app, resources={r"/*": {"origins": "*"}},
              supports_credentials=True)
  
  from .rest import api_v1, specs as api_specs
  
  from .auth.manager import login_manager
  
  from . import (
      auth,
      beers,
      shop,
      checkout,
      brewshop
  )
  
  from .erpnext import erp_client
  
  api_specs.init_app(app)
  api_v1.init_app(app)
  login_manager.init_app(app)
  cache.init_app(app)
  session.init_app(app)
  
new_contents: import coloredlogs
  
  from flask import Flask
  from flask_cors import CORS
  from flask_marshmallow import Marshmallow
  from flask_session import Session
  
  from .utils import ResourceCache
  
  import sentry_sdk
  from sentry_sdk.integrations.flask import FlaskIntegration
  
  app = Flask("salesmonkey", instance_relative_config=True)
  
  CONFIG = {
      'SESSION_TYPE': 'redis'
  }
  
  app.config.update(CONFIG)
  app.config.from_pyfile('settings.cfg')
  
  if 'SENTRY_DSN' in app.config:
      sentry_sdk.init(
          dsn=app.config['SENTRY_DSN'],
          integrations=[FlaskIntegration()]
      )
  
  if app.config['DEBUG']:
      coloredlogs.install(level='DEBUG')
  else:
      coloredlogs.install(level='INFO')
  
  ma = Marshmallow(app)
  
  cache = ResourceCache()
  
  # config={'CACHE_TYPE': 'redis',
  #                                   'CACHE_REDIS_DB': app.config['FLASK_CACHE_REDIS_DB'],
  #                                   'CACHE_REDIS_HOST': app.config['FLASK_CACHE_REDIS_HOST']})
  
  
  session = Session()
  
  cors = CORS(app, resources={r"/*": {"origins": "*"}},
              supports_credentials=True)
  
  from .rest import api_v1, specs as api_specs
  
  from .auth.manager import login_manager
  
  from . import (
      auth,
      beers,
      shop,
      checkout,
      brewshop
  )
  
  from .erpnext import erp_client
  
  api_specs.init_app(app)
  api_v1.init_app(app)
  login_manager.init_app(app)
  cache.init_app(app)
  session.init_app(app)
  
subject: remove useless prints