Skip to content

Commit 3a332a4

Browse files
author
Keerthan Mala
committed
fix(flag):Use DEIS_DEBUG instead DEBUG environment variable for debug settings
1 parent 5c66ef0 commit 3a332a4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

boot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func init() {
3434
}
3535

3636
func main() {
37-
if os.Getenv("DEBUG") == "true" {
37+
if os.Getenv("DEIS_DEBUG") == "true" {
3838
pkglog.DefaultLogger.SetDebug(true)
3939
log.Printf("Running in debug mode")
4040
}

pkg/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ install, and start **deis/builder**.
1616

1717
## Environment Variables
1818

19-
* **DEBUG** enables verbose output if set
19+
* **DEIS_DEBUG** enables verbose output if set
2020
* **ETCD_PORT** sets the TCP port on which to connect to the local etcd
2121
daemon (default: *4001*)
2222
* **ETCD_PATH** sets the etcd directory where the builder announces

pkg/gitreceive/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Config struct {
2727
Fingerprint string `envconfig:"FINGERPRINT" required:"true"`
2828
PodNamespace string `envconfig:"POD_NAMESPACE" required:"true"`
2929
StorageRegion string `envconfig:"STORAGE_REGION" default:"us-east-1"`
30-
Debug bool `envconfig:"DEBUG" default:"false"`
30+
Debug bool `envconfig:"DEIS_DEBUG" default:"false"`
3131
BuilderPodTickDurationMSec int `envconfig:"BUILDER_POD_TICK_DURATION" default:"100"`
3232
BuilderPodWaitDurationMSec int `envconfig:"BUILDER_POD_WAIT_DURATION" default:"900000"` // 15 minutes
3333
ObjectStorageTickDurationMSec int `envconfing:"OBJECT_STORAGE_TICK_DURATION" default:"500"`

0 commit comments

Comments
 (0)