@@ -23,12 +23,16 @@ module.exports = {
2323 osInfo : "platform, distro, release, arch" ,
2424 versions : "kernel, node, npm, pm2"
2525 } ) ;
26- let systemDataString = `System information:
27- ### SYSTEM: manufacturer: ${ staticData . system . manufacturer } ; model: ${ staticData . system . model } ; virtual: ${ staticData . system . virtual }
28- ### OS: platform: ${ staticData . osInfo . platform } ; distro: ${ staticData . osInfo . distro } ; release: ${ staticData . osInfo . release } ; arch: ${ staticData . osInfo . arch } ; kernel: ${ staticData . versions . kernel }
29- ### VERSIONS: electron: ${ process . versions . electron } ; used node: ${ staticData . versions . node } ; installed node: ${ installedNodeVersion } ; npm: ${ staticData . versions . npm } ; pm2: ${ staticData . versions . pm2 }
30- ### OTHER: timeZone: ${ Intl . DateTimeFormat ( ) . resolvedOptions ( ) . timeZone } ; ELECTRON_ENABLE_GPU: ${ process . env . ELECTRON_ENABLE_GPU } `
31- . replace ( / \t / g, "" ) ;
26+ let systemDataString = [
27+ "\n##### System Information #####" ,
28+ `- SYSTEM: manufacturer: ${ staticData . system . manufacturer } ; model: ${ staticData . system . model } ; virtual: ${ staticData . system . virtual } ; timeZone: ${ Intl . DateTimeFormat ( ) . resolvedOptions ( ) . timeZone } ` ,
29+ `- OS: platform: ${ staticData . osInfo . platform } ; distro: ${ staticData . osInfo . distro } ; release: ${ staticData . osInfo . release } ; arch: ${ staticData . osInfo . arch } ; kernel: ${ staticData . versions . kernel } ` ,
30+ `- VERSIONS: electron: ${ process . versions . electron } ; used node: ${ staticData . versions . node } ; installed node: ${ installedNodeVersion } ; npm: ${ staticData . versions . npm } ; pm2: ${ staticData . versions . pm2 } ` ,
31+ `- ENV: XDG_SESSION_TYPE: ${ process . env . XDG_SESSION_TYPE } ; MM_CONFIG_FILE: ${ process . env . MM_CONFIG_FILE } ;` ,
32+ ` WAYLAND_DISPLAY: ${ process . env . WAYLAND_DISPLAY } ; DISPLAY: ${ process . env . DISPLAY } ; ELECTRON_ENABLE_GPU: ${ process . env . ELECTRON_ENABLE_GPU } ` ,
33+ `- RAM: total: ${ ( os . totalmem ( ) / 1024 / 1024 ) . toFixed ( 2 ) } MB; free: ${ ( os . freemem ( ) / 1024 / 1024 ) . toFixed ( 2 ) } MB; used: ${ ( ( os . totalmem ( ) - os . freemem ( ) ) / 1024 / 1024 ) . toFixed ( 2 ) } MB` ,
34+ `- UPTIME: ${ Math . floor ( os . uptime ( ) / 60 ) } minutes`
35+ ] . join ( "\n" ) ;
3236 Log . info ( systemDataString ) ;
3337
3438 // Return is currently only for jest
0 commit comments