Added print to know which backend was used

This commit is contained in:
2026-03-02 20:28:18 +01:00
parent 0b497c1abe
commit fcf3643ff8

View File

@@ -180,6 +180,8 @@ async def fluxWriter(
async def ALLdbWriter(inputQueue: asyncio.Queue) -> None: async def ALLdbWriter(inputQueue: asyncio.Queue) -> None:
while True: while True:
# print(inputQueue)
qu = await inputQueue.get() qu = await inputQueue.get()
try: try:
@@ -193,7 +195,7 @@ async def ALLdbWriter(inputQueue: asyncio.Queue) -> None:
case 3: case 3:
print("No engine defined") print("No engine defined")
case _: case _:
print("nice") print("Inserted in SQL")
if USEINFLUX: if USEINFLUX:
fluxResult = await fluxWriter(qu) fluxResult = await fluxWriter(qu)
match fluxResult: match fluxResult:
@@ -202,7 +204,7 @@ async def ALLdbWriter(inputQueue: asyncio.Queue) -> None:
case 2: case 2:
print("Error with initializing Inxlux variables") print("Error with initializing Inxlux variables")
case _: case _:
print("nice") print("Inserted to InfluxDB")
except Exception as e: except Exception as e:
print(e) print(e)
finally: finally:
@@ -457,6 +459,9 @@ async def idrac9PoolRemote_v3(remoteIP: str, queueToInsrt: asyncio.Queue):
psu2PowerDraw = None psu2PowerDraw = None
psu2Amperage = None psu2Amperage = None
psu2Voltage = None psu2Voltage = None
psu1PowerDraw = None
psu1Amperage = None
psu1Voltage = None
if hasPSU2: if hasPSU2:
psu2PowerDraw = round((int(currentsCurrentResults[2]) / 10) * (int(voltList[1]) / 1000), ROUND_PREC) psu2PowerDraw = round((int(currentsCurrentResults[2]) / 10) * (int(voltList[1]) / 1000), ROUND_PREC)