__author__ = 'Matt Stibbs'
__version__ = '1.27.00'
target_schema_version = '1.25.00'

from flask import Flask
app = Flask(__name__)


def startup():
    import blockbuster.bb_dbconnector_factory
    import blockbuster.bb_logging as log
    import blockbuster.bb_auditlogger as audit

    blockbuster.app.debug = blockbuster.config.debug_mode

    blockbuster.bb_logging.logger.info(str.format("Application Startup - BlockBuster v{0} Schema v{1}",
                                                  blockbuster.__version__, target_schema_version))
    time_setting = "Application Setting - Time Restriction Disabled" if not blockbuster.config.timerestriction else "Application Setting - Time Restriction Enabled"
    print(time_setting)

    if blockbuster.config.debug_mode:
        print("========= APPLICATION IS RUNNING IN DEBUG MODE ==========")

    try:
        if blockbuster.bb_dbconnector_factory.DBConnectorInterfaceFactory().create().db_version_check():
            import blockbuster.bb_routes
            print("Running...")

        else:
            raise RuntimeError("Incorrect database schema version. Wanted ")

    except RuntimeError, e:
        log.logger.exception(e)
        audit.BBAuditLoggerFactory().create().logException('app', 'STARTUP', str(e))

startup()

@@ -107,97 +107,85 @@
 ask%0A
-app = Flask(__name__)%0A%0A%0Adef startup():%0A    import blockbuster.bb_dbconnector_factory%0A    
+import logging%0A%0Alogger = logging.getLogger(__name__)%0A%0Aapp = Flask(__name__)%0A%0A
 impo
@@ -206,22 +206,44 @@
 .bb_
+audit
 logg
-ing
+er
  as 
-log
+audit%0A%0Adef startup():
 %0A   
@@ -265,36 +265,35 @@
 ster.bb_
-auditlogger as audit
+dbconnector_factory
 %0A%0A    bl
@@ -353,42 +353,13 @@
     
-blockbuster.bb_logging.logger.info
+print
 (str
@@ -519,16 +519,17 @@
 rsion))%0A
+%0A
     time
@@ -588,16 +588,22 @@
 isabled%22
+ %5C%0A   
  if not 
@@ -637,16 +637,22 @@
 riction 
+%5C%0A    
 else %22Ap
@@ -697,16 +697,17 @@
 nabled%22%0A
+%0A
     prin
@@ -1070,16 +1070,27 @@
 meError(
+str.format(
 %22Incorre
@@ -1124,17 +1124,44 @@
  Wanted 
-%22
+%7B0%7D%22, target_schema_version)
 )%0A%0A    e
@@ -1195,12 +1195,8 @@
     
-log.
 logg
@@ -1295,16 +1295,30 @@
  str(e))
+%0A        raise
 %0A%0Astartu

Change logging to use standard logging library.