This repository was archived by the owner on Apr 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +0
-102
lines changed
Expand file tree Collapse file tree 3 files changed +0
-102
lines changed Original file line number Diff line number Diff line change 1818
1919var logger = require ( '@google/cloud-diagnostics-common' ) . logger ;
2020var Debuglet = require ( './debuglet.js' ) ;
21- var path = require ( 'path' ) ;
2221var _ = require ( 'lodash' ) ;
2322
2423/**
@@ -55,20 +54,11 @@ function Debug(options) {
5554var 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 ;
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments