MagicMirrorOrg/MagicMirror

Add additional infos into log

KristjanESPERANTO opened this issue ยท 4 comments

When troubleshooting in the forum or in the GitHub issues, we often get screenshots or photos like this.

Wouldn't it be helpful if we could add some more information like node version or OS into the log? Then we wouldn't have to ask the users for it.

Something like this:

[01.01.2024 22:22.15.318] [LOG]   Starting MagicMirror: v2.26.00
[01.01.2024 22:22.15.321] [LOG]   Running node 21.1.0 and npm 10.2.4 on "Linux debian 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux"

What do you think? Are there other information also be helpful?

Maybe also something to check if the user really did npm install for an update and not just git pull.

Maybe also something to check if the user really did npm install for an update and not just git pull.

at the moment I have no idea how to check this (but it would be helpful)

Are there other information also be helpful?

these are my wishes:

magic_mirror on ๎‚  develop [โœ˜!?] is ๐Ÿ“ฆ v2.27.0-develop via ๎œ˜ v21.5.0 took 43s
โฌข [Docker] โฏ uname -a
Linux ada7cbb69aa5 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 GNU/Linux

magic_mirror on ๎‚  develop [โœ˜!?] is ๐Ÿ“ฆ v2.27.0-develop via ๎œ˜ v21.5.0
โฌข [Docker] โฏ node -v
v21.5.0

magic_mirror on ๎‚  develop [โœ˜!?] is ๐Ÿ“ฆ v2.27.0-develop via ๎œ˜ v21.5.0
โฌข [Docker] โฏ npm -v
10.2.4

magic_mirror on ๎‚  develop [โœ˜!?] is ๐Ÿ“ฆ v2.27.0-develop via ๎œ˜ v21.5.0
โฌข [Docker] โฏ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

magic_mirror on ๎‚  develop [โœ˜!?] is ๐Ÿ“ฆ v2.27.0-develop via ๎œ˜ v21.5.0
โฌข [Docker] โฏ id
uid=1000(node) gid=1000(node) groups=1000(node),44(video),997(gpio)

magic_mirror on ๎‚  develop [โœ˜!?] is ๐Ÿ“ฆ v2.27.0-develop via ๎œ˜ v21.5.0
โฌข [Docker] โฏ ls -la / | grep .dockerenv
-rwxr-xr-x   1 root root    0 Jan  1 23:08 .dockerenv

magic_mirror on ๎‚  develop [โœ˜!?] is ๐Ÿ“ฆ v2.27.0-develop via ๎œ˜ v21.5.0
โฌข [Docker] โฏ npx electron -v
v27.2.0

you can check the version of electron or node-ical in the node_modules folder. we know those changed to release

we still have some users running hybrid mode, 64 bit kernel, 32 it runtime

file $(which bash)
/bin/bash: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2a9f157890930ced4c3ad0e74fc1b1b84aad71e6, for GNU/Linux 3.2.0, stripped

will output the type of runtime binary format

best way for me:
systeminformation

I use it into my module for system stats, see there