diff options
author | Alex Auvolat <alex@adnab.me> | 2020-03-04 23:04:01 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-03-04 23:04:01 +0100 |
commit | 3288cea61c7b7338ac996069be367af71bdbcd0f (patch) | |
tree | 4d594adf3dc496cc52869d6289b2b62fe95a45e9 /connector/external/config.go | |
parent | 979755a324dfccd2dd9e7e861825c9082bede99b (diff) | |
download | easybridge-3288cea61c7b7338ac996069be367af71bdbcd0f.tar.gz easybridge-3288cea61c7b7338ac996069be367af71bdbcd0f.zip |
Don't flood Messenger bridge logs to stderr by default
Diffstat (limited to 'connector/external/config.go')
-rw-r--r-- | connector/external/config.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/connector/external/config.go b/connector/external/config.go index bf2a5f8..03e1feb 100644 --- a/connector/external/config.go +++ b/connector/external/config.go @@ -1,6 +1,8 @@ package external import ( + "os" + . "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector" ) @@ -30,7 +32,7 @@ func init() { return &External{ protocol: MESSENGER_PROTOCOL, command: "./external/messenger.py", - debug: true, + debug: (os.Getenv("EASYBRIDGE_MESSENGER_DEBUG") == "true"), } }, Schema: ConfigSchema{ |