Skip to content

Commit

Permalink
Tidying up my debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
harryjmoss committed Jan 26, 2024
1 parent dc45475 commit 3ac3ee6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
3 changes: 1 addition & 2 deletions web/src/web/pages/sitrep/callbacks/census.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from models.census import CensusRow
from web import SITREP_DEPT2WARD_MAPPING
from web.config import get_settings
from web.logger import logger_timeit, logger
from web.logger import logger_timeit
from web.pages.sitrep import CAMPUSES, ids


Expand All @@ -31,7 +31,6 @@ def _store_census(
Filtered list of CensusRow dictionaries
"""
logger.info(f"DEPTS_OPEN_STORE_NAMES: {depts_open_names}")
if dept_grouper == "ALL_ICUS":
url = f"{get_settings().api_url}/census/"
params = {"departments": SITREP_DEPT2WARD_MAPPING.keys()}
Expand Down
12 changes: 0 additions & 12 deletions web/src/web/pages/sitrep/callbacks/cytoscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,18 +272,6 @@ def _prepare_cyto_elements_ward(
Use the dept_grouper == ALL_ICUs to trigger the switch to using
positions for preset layout
"""
logger.info("####### INSIDE _PREPARE_ELEMENTS_CYTOSCAPE_WARD ########")
logger.info(f"{elements=}")
logger.info(f"{census=}")
logger.info(f"{depts=}")
logger.info(f"{rooms=}")
logger.info(f"{beds=}")
logger.info(f"{sitrep=}")
logger.info(f"{discharges=}")
logger.info(f"{dept=}")
logger.info(f"{bed_submit_store=}")
logger.info(f"{dept_grouper=}")

if callback_context.triggered_id != ids.ACC_BED_SUBMIT_STORE:
preset_map_positions = True if dept_grouper == "ALL_ICUS" else False
elements = _make_elements(
Expand Down
5 changes: 0 additions & 5 deletions web/src/web/pages/sitrep/callbacks/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
from web.style import colors


from web.logger import logger

DEBUG = True


Expand Down Expand Up @@ -280,11 +278,8 @@ def patient_accordion_item(
control, panel = None, None
return dmc.AccordionControl(control), dmc.AccordionPanel(panel)

logger.info(f"Node contents: {node}")
data = node.get("data", {})

logger.info(f"Data contents: {data}")

if data.get("closed"):
control = dmc.Group(
[
Expand Down

0 comments on commit 3ac3ee6

Please sign in to comment.