moat-link-error 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {moat_link_error-0.1.2/src/moat_link_error.egg-info → moat_link_error-0.1.3}/PKG-INFO +8 -3
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/debian/changelog +18 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/pyproject.toml +8 -3
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/src/moat/link/error/_main.py +25 -2
- {moat_link_error-0.1.2 → moat_link_error-0.1.3/src/moat_link_error.egg-info}/PKG-INFO +8 -3
- moat_link_error-0.1.3/src/moat_link_error.egg-info/requires.txt +10 -0
- moat_link_error-0.1.2/src/moat_link_error.egg-info/requires.txt +0 -5
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/LICENSE.txt +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/Makefile +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/README.md +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/debian/.gitignore +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/debian/control +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/debian/rules +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/setup.cfg +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/src/moat/link/error/__init__.py +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/src/moat/link/error/_cfg.yaml +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/src/moat/link/error/_impl.py +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/src/moat_link_error.egg-info/SOURCES.txt +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/src/moat_link_error.egg-info/dependency_links.txt +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/src/moat_link_error.egg-info/top_level.txt +0 -0
- {moat_link_error-0.1.2 → moat_link_error-0.1.3}/systemd/moat-link-error-monitor.service +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: moat-link-error
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Error trace monitor for MoaT-Link
|
|
5
5
|
Author-email: Matthias Urlichs <matthias@urlichs.de>
|
|
6
6
|
Project-URL: homepage, https://m-o-a-t.org
|
|
@@ -18,8 +18,13 @@ License-File: LICENSE.txt
|
|
|
18
18
|
Requires-Dist: anyio~=4.2
|
|
19
19
|
Requires-Dist: asyncclick~=8.3
|
|
20
20
|
Requires-Dist: attrs
|
|
21
|
-
Requires-Dist: moat-util~=0.64.
|
|
22
|
-
Requires-Dist: moat-link~=0.
|
|
21
|
+
Requires-Dist: moat-util~=0.64.13
|
|
22
|
+
Requires-Dist: moat-link~=0.13.0
|
|
23
|
+
Requires-Dist: moat-lib-config~=0.2.6
|
|
24
|
+
Requires-Dist: moat-lib-path~=0.4.4
|
|
25
|
+
Requires-Dist: moat-lib-priomap~=0.2.8
|
|
26
|
+
Requires-Dist: moat-lib-rpc~=0.7.23
|
|
27
|
+
Requires-Dist: moat-lib-run~=0.2.4
|
|
23
28
|
Dynamic: license-file
|
|
24
29
|
|
|
25
30
|
# Error traces
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
moat-link-error (0.1.3-1) unstable; urgency=medium
|
|
2
|
+
|
|
3
|
+
* New release for 26.5.66
|
|
4
|
+
|
|
5
|
+
-- Matthias Urlichs <matthias@urlichs.de> Sat, 28 Nov 2026 22:57:39 +0100
|
|
6
|
+
|
|
7
|
+
moat-link-error (0.1.2-3) unstable; urgency=medium
|
|
8
|
+
|
|
9
|
+
* New release for 26.5.51
|
|
10
|
+
|
|
11
|
+
-- Matthias Urlichs <matthias@urlichs.de> Tue, 10 Nov 2026 06:15:15 +0100
|
|
12
|
+
|
|
13
|
+
moat-link-error (0.1.2-2) unstable; urgency=medium
|
|
14
|
+
|
|
15
|
+
* New release for 26.5.35
|
|
16
|
+
|
|
17
|
+
-- Matthias Urlichs <matthias@urlichs.de> Wed, 04 Nov 2026 19:27:11 +0100
|
|
18
|
+
|
|
1
19
|
moat-link-error (0.1.2-1) unstable; urgency=medium
|
|
2
20
|
|
|
3
21
|
* New release for 26.5.31
|
|
@@ -15,10 +15,15 @@ dependencies = [
|
|
|
15
15
|
"anyio ~= 4.2",
|
|
16
16
|
"asyncclick ~= 8.3",
|
|
17
17
|
"attrs",
|
|
18
|
-
"moat-util ~= 0.64.
|
|
19
|
-
"moat-link ~= 0.
|
|
18
|
+
"moat-util ~= 0.64.13",
|
|
19
|
+
"moat-link ~= 0.13.0",
|
|
20
|
+
"moat-lib-config ~= 0.2.6",
|
|
21
|
+
"moat-lib-path ~= 0.4.4",
|
|
22
|
+
"moat-lib-priomap ~= 0.2.8",
|
|
23
|
+
"moat-lib-rpc ~= 0.7.23",
|
|
24
|
+
"moat-lib-run ~= 0.2.4",
|
|
20
25
|
]
|
|
21
|
-
version = "0.1.
|
|
26
|
+
version = "0.1.3"
|
|
22
27
|
keywords = [ "MoaT",]
|
|
23
28
|
requires-python = ">=3.8"
|
|
24
29
|
name = "moat-link-error"
|
|
@@ -14,7 +14,7 @@ from moat.link._data import data_get, node_attr
|
|
|
14
14
|
from moat.link.announce import announcing
|
|
15
15
|
from moat.link.client import Link
|
|
16
16
|
from moat.link.meta import MsgMeta
|
|
17
|
-
from moat.util.times import humandelta
|
|
17
|
+
from moat.util.times import humandelta, ts2iso
|
|
18
18
|
|
|
19
19
|
from typing import Any
|
|
20
20
|
|
|
@@ -34,7 +34,9 @@ async def cli(ctx, path, meta) -> None:
|
|
|
34
34
|
obj.orig_path = path
|
|
35
35
|
path = P("error") + path
|
|
36
36
|
if ctx.invoked_subcommand is None:
|
|
37
|
-
await data_get(obj.conn, path, meta=obj.meta, out=
|
|
37
|
+
res = await data_get(obj.conn, path, meta=obj.meta, out=False, recursive=False)
|
|
38
|
+
_first_date(res)
|
|
39
|
+
yprint(res, stream=obj.stdout)
|
|
38
40
|
else:
|
|
39
41
|
obj.path = path
|
|
40
42
|
|
|
@@ -78,6 +80,23 @@ async def _traces(link: Link, path: Path) -> dict[str, Any] | None:
|
|
|
78
80
|
return dict(res.kw) or None
|
|
79
81
|
|
|
80
82
|
|
|
83
|
+
def _first_date(res: Any) -> None:
|
|
84
|
+
"""
|
|
85
|
+
Add a human-readable ``_first`` date to every record with a ``first``.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
def _do(d: Any) -> None:
|
|
89
|
+
if not isinstance(d, dict):
|
|
90
|
+
return
|
|
91
|
+
for v in d.values():
|
|
92
|
+
_do(v)
|
|
93
|
+
t = d.get("first")
|
|
94
|
+
if isinstance(t, (int, float)):
|
|
95
|
+
d["_first"] = ts2iso(t, delta=True, msec=3)
|
|
96
|
+
|
|
97
|
+
_do(res)
|
|
98
|
+
|
|
99
|
+
|
|
81
100
|
@cli.command
|
|
82
101
|
@click.pass_obj
|
|
83
102
|
async def get(obj, **k) -> None:
|
|
@@ -90,6 +109,9 @@ async def get(obj, **k) -> None:
|
|
|
90
109
|
|
|
91
110
|
If the trace monitor ("moat link error monitor") is running, the
|
|
92
111
|
first and last backtrace it has seen are added as "trace".
|
|
112
|
+
|
|
113
|
+
A human-readable ``_first`` date is added to records with a ``first``
|
|
114
|
+
timestamp.
|
|
93
115
|
"""
|
|
94
116
|
res = await data_get(obj.conn, obj.path, meta=obj.meta, out=False, **k)
|
|
95
117
|
if (trace := await _traces(obj.conn, obj.path)) is not None:
|
|
@@ -98,6 +120,7 @@ async def get(obj, **k) -> None:
|
|
|
98
120
|
entry = entry.get("data")
|
|
99
121
|
if isinstance(entry, dict):
|
|
100
122
|
entry["trace"] = trace["trace"]
|
|
123
|
+
_first_date(res)
|
|
101
124
|
yprint(res, stream=obj.stdout)
|
|
102
125
|
|
|
103
126
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: moat-link-error
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Error trace monitor for MoaT-Link
|
|
5
5
|
Author-email: Matthias Urlichs <matthias@urlichs.de>
|
|
6
6
|
Project-URL: homepage, https://m-o-a-t.org
|
|
@@ -18,8 +18,13 @@ License-File: LICENSE.txt
|
|
|
18
18
|
Requires-Dist: anyio~=4.2
|
|
19
19
|
Requires-Dist: asyncclick~=8.3
|
|
20
20
|
Requires-Dist: attrs
|
|
21
|
-
Requires-Dist: moat-util~=0.64.
|
|
22
|
-
Requires-Dist: moat-link~=0.
|
|
21
|
+
Requires-Dist: moat-util~=0.64.13
|
|
22
|
+
Requires-Dist: moat-link~=0.13.0
|
|
23
|
+
Requires-Dist: moat-lib-config~=0.2.6
|
|
24
|
+
Requires-Dist: moat-lib-path~=0.4.4
|
|
25
|
+
Requires-Dist: moat-lib-priomap~=0.2.8
|
|
26
|
+
Requires-Dist: moat-lib-rpc~=0.7.23
|
|
27
|
+
Requires-Dist: moat-lib-run~=0.2.4
|
|
23
28
|
Dynamic: license-file
|
|
24
29
|
|
|
25
30
|
# Error traces
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moat_link_error-0.1.2 → moat_link_error-0.1.3}/src/moat_link_error.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|