Skip to content

Commit 44fc5ac

Browse files
thiagoralvesclaude
andcommitted
debug: Add logging to diagnose python_blocks_cleanup symbol lookup
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 83d07c2 commit 44fc5ac

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

core/src/plc_app/plc_state_manager.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,13 @@ int unload_plc_program(PluginManager *pm)
215215
plugin_manager_get_symbol(pm, "python_blocks_cleanup");
216216
if (python_cleanup)
217217
{
218+
log_info("Calling python_blocks_cleanup()");
218219
python_cleanup();
219220
}
221+
else
222+
{
223+
log_info("python_blocks_cleanup symbol not found (no Python FBs used)");
224+
}
220225

221226
// Destroy the plugin manager
222227
plugin_manager_destroy(pm);

0 commit comments

Comments
 (0)