Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cxxpods/cxxpods
Browse files Browse the repository at this point in the history
  • Loading branch information
jglanz committed Jun 30, 2019
2 parents 941d1a6 + 3658596 commit f59f5f6
Show file tree
Hide file tree
Showing 19 changed files with 488 additions and 282 deletions.
210 changes: 47 additions & 163 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cxxpods",
"description": "CXXPods enables simple CMake dependency management",
"license": "MIT",
"version": "0.0.49",
"version": "0.0.51",
"repository": {
"type": "git",
"url": "https://github.com/cxxpods/cxxpods.git"
Expand Down Expand Up @@ -77,7 +77,10 @@
"@babel/preset-env": "^7.4.3",
"@types/handlebars": "^4.0.38",
"@types/jest": "^23.1.4",
"@types/shelljs": "^0.8.0",
"@types/lockfile": "^1.0.1",
"@types/lodash": "^4.14.132",
"@types/node": "^12.0.2",
"@types/shelljs": "^0.8.5",
"@types/yargs": "^11.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.4.2",
Expand Down
2 changes: 1 addition & 1 deletion src/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Configuration {

export const Config = new Configuration()
export const Environment = {
CXXPODS_PROC_COUNT: Math.max(1,Math.floor(OS.cpus().length / 2))
CXXPODS_PROC_COUNT: Math.max(1,Math.floor(OS.cpus().length))
}

export const Paths = {
Expand Down
7 changes: 6 additions & 1 deletion src/Log.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ const alignedWithColorsAndTime = winston.format.combine(

// CONSOLE LOGGER
const ConsoleLogger = new winston.transports.Console({
level: 'info',
level: verboseEnabled() ? 'info' : 'warn',
format: alignedWithColorsAndTime
})


export function verboseEnabled() {
return process.argv.includes("-v")
}


/**
* Create a logger
*
Expand Down

0 comments on commit f59f5f6

Please sign in to comment.