Skip to content

Commit

Permalink
chore: Refactor FiscalberryApp to store new host value
Browse files Browse the repository at this point in the history
Refactor the `store_new_host` method in the `FiscalberryApp` class to properly store the new host value. This ensures that the `sio_host` configuration is updated correctly. The logging message has been updated to include the new host value and the previous `sioServerUrl` value for reference.
  • Loading branch information
alevilar committed Sep 4, 2024
1 parent 0716153 commit 1bead69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fiscalberry_app/fiscalberry_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ def add_log(self, text):

def store_new_host(self, value):
host = value
logger.info(f"FiscalberryApp: vino para guardar sio_host:: {
host} antes estaba {self.sioServerUrl}")
logger.info(f"FiscalberryApp: vino para guardar sio_host:: {host} antes estaba {self.sioServerUrl}")
if host != self.sioServerUrl:
logger.info(f"FiscalberryApp: se guarda nuevo sio_host:: {host}")
configberry.writeKeyForSection("SERVIDOR", "sio_host", host)
Expand Down

0 comments on commit 1bead69

Please sign in to comment.