debug output
This commit is contained in:
@ -20,7 +20,8 @@ def createConnectionPool():
|
||||
host = host,
|
||||
database = database,
|
||||
pool_name = 'hv-wep-app',
|
||||
pool_size = 5
|
||||
pool_size = 5,
|
||||
pool_reset_connection = True
|
||||
)
|
||||
|
||||
def getConnection():
|
||||
@ -40,6 +41,8 @@ def getMany(stmt, params, objName):
|
||||
except Exception as err:
|
||||
return str(err), 500
|
||||
finally:
|
||||
print("return connection in getMany")
|
||||
cur.close()
|
||||
dbh.close()
|
||||
|
||||
|
||||
@ -58,5 +61,7 @@ def getOne(stmt, params, objName):
|
||||
except Exception as err:
|
||||
return str(err), 500
|
||||
finally:
|
||||
print("return connection in getOne")
|
||||
cur.close()
|
||||
dbh.close()
|
||||
|
Reference in New Issue
Block a user