Skip to content

fix logging of systeminformation for raspberry pi #3505

@khassel

Description

@khassel

Our systeminformation on startup on a raspberry pi:

[2024-07-22 21:03:15.102] [INFO]  System information:
### SYSTEM:   manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.5; raspberry: [object Object]; virtual: false
### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.1.21-v8+
### VERSIONS: electron: 31.2.1; used node: 20.15.0; installed node: 22.4.1; npm: 10.8.1; pm2:
### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined

So the object raspberry: [object Object] should be corrected. Using JSON.stringify results in

{"manufacturer":"Sony UK","processor":"BCM2711","type":"4B","revision":"1.5"}

Options:

  • we use JSON.stringify and add the info to the line
  • we omit these infos because they are not of interest
  • ?

I'm for removing the object, what do you think @sdetweil @rejas @KristjanESPERANTO ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions