Skip to content

Commit

Permalink
feat(log): web/desktop log message
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Jul 21, 2019
1 parent 4bac050 commit 0bd1940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ logT('system', 'CPU Logic cores:', os.cpus().length)
logT('system', 'Total memory:', (os.totalmem() / (1024 * 1024)).toFixed(2), 'MB')
logT('system', 'Free memory:', (os.freemem() / (1024 * 1024)).toFixed(2), 'MB')
logT('system', 'NodeJS:', process.version)
logT('system', 'Desktop server')

if(portative)
logT('system', 'portative compability')
Expand Down
1 change: 1 addition & 0 deletions src/background/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ logT('system', 'CPU Logic cores:', os.cpus().length)
logT('system', 'Total memory:', (os.totalmem() / (1024 * 1024)).toFixed(2), 'MB')
logT('system', 'Free memory:', (os.freemem() / (1024 * 1024)).toFixed(2), 'MB')
logT('system', 'NodeJS:', process.version)
logT('system', 'Web server')

const majorVersion = /v?([0-9]+)\.?([0-9]+)?\.?([0-9]+)?\.?([0-9]+)?/.exec(process.version)[1]
if(majorVersion < 8)
Expand Down

0 comments on commit 0bd1940

Please sign in to comment.