mirror of
https://github.com/craigerl/aprsd.git
synced 2025-08-10 09:12:30 -04:00
Add tracing for dev command
This patch enables tracing output in the log for the dev test-plugin command
This commit is contained in:
parent
1d5f76defc
commit
1233137caf
@ -8,7 +8,7 @@ import logging
|
|||||||
import click
|
import click
|
||||||
|
|
||||||
# local imports here
|
# local imports here
|
||||||
from aprsd import cli_helper, client, messaging, packets, plugin, stats
|
from aprsd import cli_helper, client, messaging, packets, plugin, stats, trace
|
||||||
|
|
||||||
from ..aprsd import cli
|
from ..aprsd import cli
|
||||||
|
|
||||||
@ -79,6 +79,10 @@ def test_plugin(
|
|||||||
|
|
||||||
if type(message) is tuple:
|
if type(message) is tuple:
|
||||||
message = " ".join(message)
|
message = " ".join(message)
|
||||||
|
|
||||||
|
if config["aprsd"].get("trace", False):
|
||||||
|
trace.setup_tracing(["method", "api"])
|
||||||
|
|
||||||
client.Client(config)
|
client.Client(config)
|
||||||
stats.APRSDStats(config)
|
stats.APRSDStats(config)
|
||||||
messaging.MsgTrack(config=config)
|
messaging.MsgTrack(config=config)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user