Factorio: demote EnergyLink text to debug logging level.
This commit is contained in:
parent
ff783cf9a5
commit
09670a4475
|
@ -121,7 +121,7 @@ class FactorioContext(CommonContext):
|
||||||
gained = int(args["original_value"] - args["value"])
|
gained = int(args["original_value"] - args["value"])
|
||||||
gained_text = Utils.format_SI_prefix(gained) + "J"
|
gained_text = Utils.format_SI_prefix(gained) + "J"
|
||||||
if gained:
|
if gained:
|
||||||
logger.info(f"EnergyLink: Received {gained_text}. "
|
logger.debug(f"EnergyLink: Received {gained_text}. "
|
||||||
f"{Utils.format_SI_prefix(args['value'])}J remaining.")
|
f"{Utils.format_SI_prefix(args['value'])}J remaining.")
|
||||||
self.rcon_client.send_command(f"/ap-energylink {gained}")
|
self.rcon_client.send_command(f"/ap-energylink {gained}")
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ async def game_watcher(ctx: FactorioContext):
|
||||||
}]))
|
}]))
|
||||||
ctx.rcon_client.send_command(
|
ctx.rcon_client.send_command(
|
||||||
f"/ap-energylink -{value}")
|
f"/ap-energylink -{value}")
|
||||||
logger.info(f"EnergyLink: Sent {Utils.format_SI_prefix(value)}J")
|
logger.debug(f"EnergyLink: Sent {Utils.format_SI_prefix(value)}J")
|
||||||
|
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue