Skip to content

Commit fb9dfd0

Browse files
authored
Merge branch 'main' into fix/file-not-found
2 parents a717c5a + 60ce8fa commit fb9dfd0

File tree

5 files changed

+38
-9
lines changed

5 files changed

+38
-9
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## [4.10.0](https://github.com/ipfs/ipfs-webui/compare/v4.9.1...v4.10.0) (2025-11-06)
2+
3+
4+
CID `bafybeidsjptidvb6wf6benznq2pxgnt5iyksgtecpmjoimlmswhtx2u5ua`
5+
6+
---
7+
8+
9+
10+
### Features
11+
12+
* **diagnostics/logs:** include extended details ([#2457](https://github.com/ipfs/ipfs-webui/issues/2457)) ([3b52cab](https://github.com/ipfs/ipfs-webui/commit/3b52cab272d41079249ca35db8439d2e2fd10efb))
13+
14+
15+
### Trivial Changes
16+
17+
* pull new translations ([#2446](https://github.com/ipfs/ipfs-webui/issues/2446)) ([32cfa22](https://github.com/ipfs/ipfs-webui/commit/32cfa22fd42c14ede054d52de1d2ec45b6575a83))
18+
* update kubo-rpc-client to 5.4.0 and kubo to 0.38.0 ([#2445](https://github.com/ipfs/ipfs-webui/issues/2445)) ([282fef3](https://github.com/ipfs/ipfs-webui/commit/282fef3d095fe3d337f9f8718868d376ee126d80))
19+
120
## [4.9.1](https://github.com/ipfs/ipfs-webui/compare/v4.9.0...v4.9.1) (2025-09-26)
221

322

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ipfs-webui",
3-
"version": "4.9.1",
3+
"version": "4.10.0",
44
"type": "module",
55
"private": true,
66
"files": [

public/locales/en/diagnostics.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
"autocomplete": {
4848
"globalLevel": "Global level",
4949
"subsystem": "Subsystem",
50-
"level": "Log level"
50+
"level": "Log level",
51+
"invalidSubsystem": "Subsystem \"{subsystem}\" is not valid. Valid subsystems: {subsystems}",
52+
"invalidLevel": "\"{level}\" is not a valid log level. Valid levels: debug, info, warn, error, dpanic, panic, fatal",
53+
"invalidInput": "Input cannot be empty"
5154
},
5255
"warnings": {
5356
"potentialIssues": "Potential Issues:",

src/contexts/logs/api.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ interface RawLogEntry {
2424
* The message of the log
2525
*/
2626
msg: string
27+
/**
28+
* Allow any additional structured fields
29+
*/
30+
[key: string]: any
2731
}
2832

2933
/**
@@ -119,11 +123,14 @@ export async function fetchLogSubsystems (ipfs: KuboRPCClient, signal?: AbortSig
119123
* Parse raw log entry into structured LogEntry
120124
*/
121125
export function parseLogEntry (raw: unknown): LogEntry {
122-
const obj = raw as RawLogEntry
126+
const { ts, level, logger, caller, msg, ...attributes } = raw as RawLogEntry
127+
123128
return {
124-
timestamp: obj.ts,
125-
level: obj.level,
126-
subsystem: obj.logger,
127-
message: obj.msg
129+
timestamp: ts,
130+
level,
131+
subsystem: logger,
132+
message: Object.keys(attributes).length > 0
133+
? `${msg} ${JSON.stringify(attributes)}`
134+
: msg
128135
}
129136
}

0 commit comments

Comments
 (0)