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