Skip to content

Commit

Permalink
chore(package): update @google-clooud/common to version 0.19.2 (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanmar511 authored and aalexand committed Jun 8, 2018
1 parent 7bc883a commit 2c9fd12
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@google-cloud/common": "^0.18.9",
"@google-cloud/common": "^0.19.2",
"bindings": "^1.2.1",
"delay": "^3.0.0",
"extend": "^3.0.1",
Expand Down
12 changes: 4 additions & 8 deletions ts/src/index.ts
Expand Up @@ -172,10 +172,8 @@ export async function start(config: Config = {}): Promise<void> {
}

function logError(msg: string, config: Config) {
const logger = new Logger({
level: Logger.DEFAULT_OPTIONS.levels[config.logLevel || 2],
tag: pjson.name
});
const logger =
new Logger({level: Logger.LEVELS[config.logLevel || 2], tag: pjson.name});
logger.error(msg);
}

Expand All @@ -194,10 +192,8 @@ export async function startLocal(config: Config = {}): Promise<void> {
}

// Set up periodic logging.
const logger = new Logger({
level: Logger.DEFAULT_OPTIONS.levels[profiler.config.logLevel],
tag: pjson.name
});
const logger = new Logger(
{level: Logger.LEVELS[profiler.config.logLevel], tag: pjson.name});
let heapProfileCount = 0;
let timeProfileCount = 0;
let prevLogTime = Date.now();
Expand Down
6 changes: 2 additions & 4 deletions ts/src/profiler.ts
Expand Up @@ -235,10 +235,8 @@ export class Profiler extends ServiceObject {
super({parent: new Service(serviceConfig, config), baseUrl: '/'});
this.config = config;

this.logger = new Logger({
level: Logger.DEFAULT_OPTIONS.levels[config.logLevel as number],
tag: pjson.name
});
this.logger = new Logger(
{level: Logger.LEVELS[config.logLevel as number], tag: pjson.name});

const labels: {zone?: string,
version?: string, language: string} = {language: 'nodejs'};
Expand Down

0 comments on commit 2c9fd12

Please sign in to comment.