kopia lustrzana https://github.com/Yakifo/amqtt
Merge pull request #274 from ajmirsky/broker_script_logging
Improved broker script loggingrevert-274-broker_script_logging
commit
a64e7a6900
|
@ -4,6 +4,9 @@ __pycache__
|
||||||
node_modules
|
node_modules
|
||||||
.vite
|
.vite
|
||||||
*.pem
|
*.pem
|
||||||
|
*.key
|
||||||
|
*.crt
|
||||||
|
*.patch
|
||||||
|
|
||||||
#------- Environment Files -------
|
#------- Environment Files -------
|
||||||
.python-version
|
.python-version
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
# Image name and tag
|
# Image name and tag
|
||||||
IMAGE_NAME := amqtt
|
IMAGE_NAME := amqtt
|
||||||
IMAGE_TAG := latest
|
IMAGE_TAG := latest
|
||||||
VERSION_TAG := 0.11.2
|
VERSION_TAG := 0.11.3-rc.1
|
||||||
REGISTRY := amqtt/$(IMAGE_NAME)
|
REGISTRY := amqtt/$(IMAGE_NAME)
|
||||||
|
|
||||||
# Platforms to build for
|
# Platforms to build for
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
"""INIT."""
|
"""INIT."""
|
||||||
|
|
||||||
__version__ = "0.11.2"
|
__version__ = "0.11.3-rc.1"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
"""Module for plugins requiring additional dependencies."""
|
|
@ -41,9 +41,12 @@ def broker_main(
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Command-line script for running a MQTT 3.1.1 broker."""
|
"""Command-line script for running a MQTT 3.1.1 broker."""
|
||||||
formatter = "[%(asctime)s] :: %(levelname)s - %(message)s"
|
formatter = "[%(asctime)s] :: %(levelname)s - %(message)s"
|
||||||
|
if debug:
|
||||||
|
formatter = "[%(asctime)s] %(name)s:%(lineno)d :: %(levelname)s - %(message)s"
|
||||||
|
|
||||||
level = logging.DEBUG if debug else logging.INFO
|
level = logging.DEBUG if debug else logging.INFO
|
||||||
logging.basicConfig(level=level, format=formatter)
|
logging.basicConfig(level=level, format=formatter)
|
||||||
|
logging.getLogger("transitions").setLevel(logging.WARNING)
|
||||||
try:
|
try:
|
||||||
if config_file:
|
if config_file:
|
||||||
config = read_yaml_config(config_file)
|
config = read_yaml_config(config_file)
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Contributed Plugins
|
||||||
|
|
||||||
|
Plugins that are not part of the core functionality of the aMQTT broker or client, often requiring additional dependencies.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "amqttio",
|
"name": "amqttio",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.11.2",
|
"version": "0.11.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|
|
@ -40,6 +40,7 @@ nav:
|
||||||
- Plugins:
|
- Plugins:
|
||||||
- Packaged: packaged_plugins.md
|
- Packaged: packaged_plugins.md
|
||||||
- Custom: custom_plugins.md
|
- Custom: custom_plugins.md
|
||||||
|
- Contributed: contrib_plugins.md
|
||||||
- Configuration:
|
- Configuration:
|
||||||
- Broker: references/broker_config.md
|
- Broker: references/broker_config.md
|
||||||
- Client: references/client_config.md
|
- Client: references/client_config.md
|
||||||
|
|
|
@ -20,7 +20,7 @@ classifiers = [
|
||||||
"Programming Language :: Python :: 3.13"
|
"Programming Language :: Python :: 3.13"
|
||||||
]
|
]
|
||||||
|
|
||||||
version = "0.11.2"
|
version = "0.11.3-rc.1"
|
||||||
requires-python = ">=3.10.0"
|
requires-python = ">=3.10.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
|
|
2
uv.lock
2
uv.lock
|
@ -9,7 +9,7 @@ resolution-markers = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "amqtt"
|
name = "amqtt"
|
||||||
version = "0.11.2"
|
version = "0.11.3rc1"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "dacite" },
|
{ name = "dacite" },
|
||||||
|
|
Ładowanie…
Reference in New Issue