feat: enhance system information logging format and include additional env and RAM details#3839
Merged
rejas merged 1 commit intoMagicMirrorOrg:developfrom Jul 10, 2025
Merged
Conversation
…l env and RAM details
Collaborator
|
we don't display the MM version still, its displayed up at the top, but would be nice to have it done here for user copy/paste uptime and RAM are ok, not used much but, never know |
rejas
approved these changes
Jul 10, 2025
rejas
pushed a commit
that referenced
this pull request
Jul 12, 2025
Additionally to #3839 did some rework on the system logging. - feat: include MagicMirror version (like Sam suggested in #3839) - refactor: use more variables to get the string array less complex - refactor: get `installedNodeVersion` from si.versions (with that it was possible to drop the import of `execSync`) - fix: `used node` was always the same as the installed one. Since Electron comes with its own node version, this can differ. This is now shown correctly (again?) with the use of `process.version`. - a bit formatting I think these changes make the code easier to understand and therefore easier to maintain. Except for showing the MM version there is no big difference for the user. ## before ```bash ##### System Information ##### - SYSTEM: manufacturer: Notebook; model: N650DU; virtual: false; timeZone: Europe/Berlin - OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64 - VERSIONS: electron: 36.3.2; used node: 22.15.0; installed node: 22.15.0; npm: 10.9.0; pm2: 6.0.6 - ENV: XDG_SESSION_TYPE: wayland; MM_CONFIG_FILE: config/config_MMM-PublicTransportHafas.js; WAYLAND_DISPLAY: wayland-0; DISPLAY: :0; ELECTRON_ENABLE_GPU: undefined - RAM: total: 15925.45 MB; free: 2716.90 MB; used: 13209.04 MB - UPTIME: 259 minutes ``` ## after ```bash #### System Information #### - SYSTEM: manufacturer: Notebook; model: N650DU; virtual: false; MM: 2.33.0-develop - OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64 - VERSIONS: electron: 36.3.2; used node: 22.15.1; installed node: 22.15.0; npm: 10.9.0; pm2: 6.0.6 - ENV: XDG_SESSION_TYPE: wayland; MM_CONFIG_FILE: config/config_MMM-PublicTransportHafas.js WAYLAND_DISPLAY: wayland-0; DISPLAY: :0; ELECTRON_ENABLE_GPU: undefined - RAM: total: 15925.45 MB; free: 2814.49 MB; used: 13110.96 MB - OTHERS: uptime: 260 minutes; timeZone: Europe/Berlin ```
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When we introduced the system information, I selected
###as the prefix for each line. While this doesn't cause any problems in the terminal, when someone copies the output to an issue or the forum, every line is formatted as a heading, which is not ideal. That's why I made some rework and suggest these changes.In addition to the formatting changes, I added some env and RAM details plus the uptime. These are just suggestions – if you don't think they're worth adding, I'm happy to remove them. We wanted to keep this block compact.
@sdetweil, since you are often on the front line with the error messages from users: Is there any information missing in the system block that you often have to request additionally?
Feel free to request changes!
in the terminal
before
after
as markdown (in an issue or the forum)
before
[2025-07-09 21:58:36.943] [INFO] System information:
SYSTEM: manufacturer: Notebook; model: N650DU; virtual: false
OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64
VERSIONS: electron: 36.3.2; used node: 24.2.0; installed node: 24.2.0; npm: 10.9.0; pm2: 6.0.6
OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
after
[2025-07-09 21:57:47.604] [INFO]
System Information
WAYLAND_DISPLAY: wayland-0; DISPLAY: :0; ELECTRON_ENABLE_GPU: undefined