From 008fe3c83eca8012bc1f1c1db673c2d824c9612f Mon Sep 17 00:00:00 2001 From: Walter Boring Date: Sat, 7 Feb 2026 17:17:15 -0500 Subject: [PATCH] Fixed an issue with dev command --- aprsd/cmds/dev.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aprsd/cmds/dev.py b/aprsd/cmds/dev.py index eeac74c..9a4c214 100644 --- a/aprsd/cmds/dev.py +++ b/aprsd/cmds/dev.py @@ -10,6 +10,7 @@ import click from oslo_config import cfg import aprsd +import aprsd.packets.log as packet_log from aprsd import cli_helper, packets, plugin, utils # local imports here @@ -128,15 +129,17 @@ def test_plugin( message_text=message, ) LOG.info(f"P'{plugin_path}' F'{fromcall}' C'{message}'") + packet_log.log(packet) for _ in range(number): # PluginManager.run() executes all plugins in parallel # Results may be in a different order than plugin registration # NULL_MESSAGE results are already filtered out - replies = pm.run(packet) + results, handled = pm.run(packet) + LOG.debug(f'Replies: {results}') # Plugin might have threads, so lets stop them so we can exit. # obj.stop_threads() - for reply in replies: + for reply in results: if isinstance(reply, list): # one of the plugins wants to send multiple messages for subreply in reply: @@ -157,6 +160,7 @@ def test_plugin( # Note: NULL_MESSAGE results are already filtered out # in PluginManager.run(), but keeping this check for safety if reply is not packets.NULL_MESSAGE: + LOG.debug(f'Reply: {reply}') LOG.info( packets.MessagePacket( from_call=CONF.callsign,