Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 69ca4e8

Browse files
Remove unncessary environment variables (#184)
PR-URL: #184
1 parent e410c36 commit 69ca4e8

File tree

3 files changed

+0
-102
lines changed

3 files changed

+0
-102
lines changed

src/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
var logger = require('@google/cloud-diagnostics-common').logger;
2020
var Debuglet = require('./debuglet.js');
21-
var path = require('path');
2221
var _ = require('lodash');
2322

2423
/**
@@ -55,20 +54,11 @@ function Debug(options) {
5554
var initConfig = function(config_) {
5655
var config = config_ || {};
5756

58-
if (process.env.hasOwnProperty('GCLOUD_DIAGNOSTICS_CONFIG')) {
59-
var c = require(path.resolve(process.env.GCLOUD_DIAGNOSTICS_CONFIG));
60-
if (c && c.debug) {
61-
_.defaultsDeep(config, c.debug);
62-
}
63-
}
6457
var defaults = require('./config.js').debug;
6558
_.defaultsDeep(config, defaults);
6659
if (process.env.hasOwnProperty('GCLOUD_DEBUG_LOGLEVEL')) {
6760
config.logLevel = process.env.GCLOUD_DEBUG_LOGLEVEL;
6861
}
69-
if (process.env.hasOwnProperty('GCLOUD_DEBUG_DISABLE')) {
70-
config.enabled = false;
71-
}
7262
if (process.env.hasOwnProperty('GCLOUD_DEBUG_REPO_APP_PATH')) {
7363
config.appPathRelativeToRepository =
7464
process.env.GCLOUD_DEBUG_REPO_APP_PATH;

test/standalone/test-env-config.js

Lines changed: 0 additions & 63 deletions
This file was deleted.

test/standalone/test-env-disable.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)