1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-21 23:55:17 -05:00

Compare commits

..

2 Commits

Author SHA1 Message Date
dependabot[bot]
82f8a0d0d1
Merge 08779b9371 into cb2a3441b4 2024-05-06 19:45:41 +00:00
dependabot[bot]
08779b9371
Bump werkzeug from 3.0.2 to 3.0.3
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 19:45:40 +00:00
6 changed files with 76 additions and 227 deletions

View File

@ -4,7 +4,6 @@ CHANGES
v3.4.0 v3.4.0
------ ------
* Updated Changelog for 3.4.0
* Change setup.h * Change setup.h
* Fixed docker setup.sh comparison * Fixed docker setup.sh comparison
* Fixed unit tests failing with WatchList * Fixed unit tests failing with WatchList

View File

@ -12,22 +12,7 @@ from aprsd.conf import log as conf_log
CONF = cfg.CONF CONF = cfg.CONF
# LOG = logging.getLogger("APRSD") # LOG = logging.getLogger("APRSD")
LOG = logger LOG = logger
logging_queue = queue.Queue()
class QueueLatest(queue.Queue):
"""Custom Queue to keep only the latest N items.
This prevents the queue from blowing up in size.
"""
def put(self, *args, **kwargs):
try:
super().put(*args, **kwargs)
except queue.Full:
self.queue.popleft()
super().put(*args, **kwargs)
logging_queue = QueueLatest(maxsize=200)
class InterceptHandler(logging.Handler): class InterceptHandler(logging.Handler):
@ -74,10 +59,6 @@ def setup_logging(loglevel=None, quiet=False):
"werkzeug._internal", "werkzeug._internal",
"socketio", "socketio",
"urllib3.connectionpool", "urllib3.connectionpool",
"chardet",
"chardet.charsetgroupprober",
"chardet.eucjpprober",
"chardet.mbcharsetprober",
] ]
# We don't really want to see the aprslib parsing debug output. # We don't really want to see the aprslib parsing debug output.

View File

@ -5,7 +5,6 @@ from oslo_config import cfg
import aprsd import aprsd
from aprsd import utils from aprsd import utils
from aprsd.log import log as aprsd_log
CONF = cfg.CONF CONF = cfg.CONF
@ -33,7 +32,6 @@ class APRSDStats:
def stats(self, serializable=False) -> dict: def stats(self, serializable=False) -> dict:
current, peak = tracemalloc.get_traced_memory() current, peak = tracemalloc.get_traced_memory()
uptime = self.uptime() uptime = self.uptime()
qsize = aprsd_log.logging_queue.qsize()
if serializable: if serializable:
uptime = str(uptime) uptime = str(uptime)
stats = { stats = {
@ -44,6 +42,5 @@ class APRSDStats:
"memory_current_str": utils.human_size(current), "memory_current_str": utils.human_size(current),
"memory_peak": int(peak), "memory_peak": int(peak),
"memory_peak_str": utils.human_size(peak), "memory_peak_str": utils.human_size(peak),
"loging_queue": qsize,
} }
return stats return stats

View File

@ -6,7 +6,6 @@ import tracemalloc
from oslo_config import cfg from oslo_config import cfg
from aprsd import client, packets, utils from aprsd import client, packets, utils
from aprsd.log import log as aprsd_log
from aprsd.stats import collector from aprsd.stats import collector
from aprsd.threads import APRSDThread, APRSDThreadList from aprsd.threads import APRSDThread, APRSDThreadList
@ -60,7 +59,7 @@ class KeepAliveThread(APRSDThread):
keepalive = ( keepalive = (
"{} - Uptime {} RX:{} TX:{} Tracker:{} Msgs TX:{} RX:{} " "{} - Uptime {} RX:{} TX:{} Tracker:{} Msgs TX:{} RX:{} "
"Last:{} Email: {} - RAM Current:{} Peak:{} Threads:{} LoggingQueue:{}" "Last:{} Email: {} - RAM Current:{} Peak:{} Threads:{}"
).format( ).format(
stats_json["APRSDStats"]["callsign"], stats_json["APRSDStats"]["callsign"],
stats_json["APRSDStats"]["uptime"], stats_json["APRSDStats"]["uptime"],
@ -74,7 +73,6 @@ class KeepAliveThread(APRSDThread):
stats_json["APRSDStats"]["memory_current_str"], stats_json["APRSDStats"]["memory_current_str"],
stats_json["APRSDStats"]["memory_peak_str"], stats_json["APRSDStats"]["memory_peak_str"],
len(thread_list), len(thread_list),
aprsd_log.logging_queue.qsize(),
) )
LOG.info(keepalive) LOG.info(keepalive)
if "APRSDThreadList" in stats_json: if "APRSDThreadList" in stats_json:

View File

@ -4,205 +4,79 @@
# #
# pip-compile --annotation-style=line dev-requirements.in # pip-compile --annotation-style=line dev-requirements.in
# #
add-trailing-comma==3.1.0 add-trailing-comma==3.1.0 # via gray
# via gray alabaster==0.7.16 # via sphinx
alabaster==0.7.16 autoflake==1.5.3 # via gray
# via sphinx babel==2.14.0 # via sphinx
autoflake==1.5.3 black==24.4.0 # via gray
# via gray build==1.2.1 # via pip-tools
babel==2.14.0 cachetools==5.3.3 # via tox
# via sphinx certifi==2024.2.2 # via requests
black==24.4.0 cfgv==3.4.0 # via pre-commit
# via gray chardet==5.2.0 # via tox
build==1.2.1 charset-normalizer==3.3.2 # via requests
# via pip-tools click==8.1.7 # via black, fixit, moreorless, pip-tools
cachetools==5.3.3 colorama==0.4.6 # via tox
# via tox commonmark==0.9.1 # via rich
certifi==2024.2.2 configargparse==1.7 # via gray
# via requests coverage[toml]==7.5.0 # via pytest-cov
cfgv==3.4.0 distlib==0.3.8 # via virtualenv
# via pre-commit docutils==0.21.2 # via sphinx
chardet==5.2.0 exceptiongroup==1.2.1 # via pytest
# via tox filelock==3.13.4 # via tox, virtualenv
charset-normalizer==3.3.2 fixit==2.1.0 # via gray
# via requests flake8==7.0.0 # via -r dev-requirements.in, pep8-naming
click==8.1.7 gray==0.14.0 # via -r dev-requirements.in
# via identify==2.5.36 # via pre-commit
# black idna==3.7 # via requests
# fixit imagesize==1.4.1 # via sphinx
# moreorless iniconfig==2.0.0 # via pytest
# pip-tools isort==5.13.2 # via -r dev-requirements.in, gray
colorama==0.4.6 jinja2==3.1.3 # via sphinx
# via tox libcst==1.3.1 # via fixit
commonmark==0.9.1 markupsafe==2.1.5 # via jinja2
# via rich mccabe==0.7.0 # via flake8
configargparse==1.7 moreorless==0.4.0 # via fixit
# via gray mypy==1.9.0 # via -r dev-requirements.in
coverage[toml]==7.5.0 mypy-extensions==1.0.0 # via black, mypy
# via pytest-cov nodeenv==1.8.0 # via pre-commit
distlib==0.3.8 packaging==24.0 # via black, build, fixit, pyproject-api, pytest, sphinx, tox
# via virtualenv pathspec==0.12.1 # via black, trailrunner
docutils==0.21.2 pep8-naming==0.13.3 # via -r dev-requirements.in
# via sphinx pip-tools==7.4.1 # via -r dev-requirements.in
exceptiongroup==1.2.1 platformdirs==4.2.1 # via black, tox, virtualenv
# via pytest pluggy==1.5.0 # via pytest, tox
filelock==3.13.4 pre-commit==3.7.0 # via -r dev-requirements.in
# via pycodestyle==2.11.1 # via flake8
# tox pyflakes==3.2.0 # via autoflake, flake8
# virtualenv pygments==2.17.2 # via rich, sphinx
fixit==2.1.0 pyproject-api==1.6.1 # via tox
# via gray pyproject-hooks==1.0.0 # via build, pip-tools
flake8==7.0.0 pytest==8.1.1 # via -r dev-requirements.in, pytest-cov
# via pytest-cov==5.0.0 # via -r dev-requirements.in
# -r dev-requirements.in pyupgrade==3.15.2 # via gray
# pep8-naming pyyaml==6.0.1 # via libcst, pre-commit
gray==0.14.0 requests==2.31.0 # via sphinx
# via -r dev-requirements.in rich==12.6.0 # via gray
identify==2.5.36 snowballstemmer==2.2.0 # via sphinx
# via pre-commit sphinx==7.3.7 # via -r dev-requirements.in
idna==3.7 sphinxcontrib-applehelp==1.0.8 # via sphinx
# via requests sphinxcontrib-devhelp==1.0.6 # via sphinx
imagesize==1.4.1 sphinxcontrib-htmlhelp==2.0.5 # via sphinx
# via sphinx sphinxcontrib-jsmath==1.0.1 # via sphinx
iniconfig==2.0.0 sphinxcontrib-qthelp==1.0.7 # via sphinx
# via pytest sphinxcontrib-serializinghtml==1.1.10 # via sphinx
isort==5.13.2 tokenize-rt==5.2.0 # via add-trailing-comma, pyupgrade
# via toml==0.10.2 # via autoflake
# -r dev-requirements.in tomli==2.0.1 # via black, build, coverage, fixit, mypy, pip-tools, pyproject-api, pyproject-hooks, pytest, sphinx, tox
# gray tox==4.14.2 # via -r dev-requirements.in
jinja2==3.1.4 trailrunner==1.4.0 # via fixit
# via sphinx typing-extensions==4.11.0 # via black, mypy
libcst==1.3.1 unify==0.5 # via gray
# via fixit untokenize==0.1.1 # via unify
markupsafe==2.1.5 urllib3==2.2.1 # via requests
# via jinja2 virtualenv==20.26.0 # via pre-commit, tox
mccabe==0.7.0 wheel==0.43.0 # via pip-tools
# via flake8
moreorless==0.4.0
# via fixit
mypy==1.9.0
# via -r dev-requirements.in
mypy-extensions==1.0.0
# via
# black
# mypy
nodeenv==1.8.0
# via pre-commit
packaging==24.0
# via
# black
# build
# fixit
# pyproject-api
# pytest
# sphinx
# tox
pathspec==0.12.1
# via
# black
# trailrunner
pep8-naming==0.13.3
# via -r dev-requirements.in
pip-tools==7.4.1
# via -r dev-requirements.in
platformdirs==4.2.1
# via
# black
# tox
# virtualenv
pluggy==1.5.0
# via
# pytest
# tox
pre-commit==3.7.0
# via -r dev-requirements.in
pycodestyle==2.11.1
# via flake8
pyflakes==3.2.0
# via
# autoflake
# flake8
pygments==2.17.2
# via
# rich
# sphinx
pyproject-api==1.6.1
# via tox
pyproject-hooks==1.0.0
# via
# build
# pip-tools
pytest==8.1.1
# via
# -r dev-requirements.in
# pytest-cov
pytest-cov==5.0.0
# via -r dev-requirements.in
pyupgrade==3.15.2
# via gray
pyyaml==6.0.1
# via
# libcst
# pre-commit
requests==2.31.0
# via sphinx
rich==12.6.0
# via gray
snowballstemmer==2.2.0
# via sphinx
sphinx==7.3.7
# via -r dev-requirements.in
sphinxcontrib-applehelp==1.0.8
# via sphinx
sphinxcontrib-devhelp==1.0.6
# via sphinx
sphinxcontrib-htmlhelp==2.0.5
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.7
# via sphinx
sphinxcontrib-serializinghtml==1.1.10
# via sphinx
tokenize-rt==5.2.0
# via
# add-trailing-comma
# pyupgrade
toml==0.10.2
# via autoflake
tomli==2.0.1
# via
# black
# build
# coverage
# fixit
# mypy
# pip-tools
# pyproject-api
# pyproject-hooks
# pytest
# sphinx
# tox
tox==4.14.2
# via -r dev-requirements.in
trailrunner==1.4.0
# via fixit
typing-extensions==4.11.0
# via
# black
# mypy
unify==0.5
# via gray
untokenize==0.1.1
# via unify
urllib3==2.2.1
# via requests
virtualenv==20.26.0
# via
# pre-commit
# tox
wheel==0.43.0
# via pip-tools
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:
# pip # pip

View File

@ -80,7 +80,7 @@ importlib-metadata==7.1.0
# kiss3 # kiss3
itsdangerous==2.2.0 itsdangerous==2.2.0
# via flask # via flask
jinja2==3.1.4 jinja2==3.1.3
# via flask # via flask
kiss3==8.0.0 kiss3==8.0.0
# via -r requirements.in # via -r requirements.in