msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
20 stars 12 forks source link

Export to excel crashes server with DEBUG log level #4514

Closed mark-prins closed 1 month ago

mark-prins commented 1 month ago

What went wrong? 😲

When running DEBUG and trying to export to excel, I get a ton of data logged and the server will not complete the API request, nor respond to the kill request. I have to close the terminal to get the server to stop.

Example log snippet 2024-08-06 16:50:46.275914000 [DEBUG] :Matching complex selector .paging tbody for ElementRef { node: NodeRef { id: NodeId(63), tree: Tree { vec: [Node { parent: None, prev_sibling: None, next_sibling: None, children: Some((NodeId(3), NodeId(3))), value: Fragment }, Node { parent: None, prev_sibling: None, next_sibling: None, children: None, value: Element() }, Node { parent: Some(NodeId(1)), prev_sibling: None, next_sibling: None, children: Some((NodeId(4), NodeId(454))), value: Element() }, Node { parent: Some(NodeId(3)), prev_sibling: None, next_sibling: Some(NodeId(5)), children: None, value: Text(" ") }, Node { parent: Some(NodeId(3)), prev_sibling: Some(NodeId(4)), next_sibling: Some(NodeId(454)), children: Some((NodeId(6), NodeId(453))), value: Element() }, Node { parent: Some(NodeId(5)), prev_sibling: None, next_sibling: Some(NodeId(7)), children: None, value: Text(" ") }, Node { parent: Some(NodeId(5)), prev_sibling: Some(NodeId(6)), next_sibling: Some(NodeId(62)), children: Some((NodeId(8), NodeId(61))), value: Element() }, Node { parent: Some(NodeId(7)), prev_sibling: None, next_sibling: Some(NodeId(9)), children: None, value: Text(" ") }, Node { parent: Some(NodeId(7)), prev_sibling: Some(NodeId(8)), next_sibling: Some(NodeId(61)), children: Some((NodeId(10), NodeId(60))), value: Element() }, Node { parent: Some(NodeId(9)), prev_sibling: None, next_sibling: Some(NodeId(11)), children: None, value: Text(" ") }, Node { parent: Some(NodeId(9)), prev_sibling: Some(NodeId(10)), next_sibling: Some(NodeId(60)), children: Some((NodeId(12), NodeId(59))), value: Element(
) }, Node { parent: Some(NodeId(11)), prev_sibling: None, next_sibling: Some(NodeId(14)), children: Some((NodeId(13), NodeId(13))), value: Element(