diff --git a/openvpn/connector/configmgr.py b/openvpn/connector/configmgr.py index 4402e81..fde6feb 100644 --- a/openvpn/connector/configmgr.py +++ b/openvpn/connector/configmgr.py @@ -36,7 +36,7 @@ def Import(self, profile): if len(self.__overwrite) > 0: print('** Warning ** Removing old configuration profile with same name') for cfg in self.__overwrite: - if 'OPENVPN_CLOUD_DEBUG' in os.environ: + if 'OPENVPN_CONNECTOR_DEBUG' in os.environ: print('.. Removing %s' % cfg.GetPath()) cfg.Remove() @@ -49,7 +49,7 @@ def Import(self, profile): self._cfgobj.SetOverride('persist-tun', True) self._cfgobj.SetOverride('log-level', '5') print('Done') - if 'OPENVPN_CLOUD_DEBUG' in os.environ: + if 'OPENVPN_CONNECTOR_DEBUG' in os.environ: print('Configuration path: %s' % self._cfgobj.GetPath()) diff --git a/openvpn/connector/main.py b/openvpn/connector/main.py index ab6bd61..d113870 100644 --- a/openvpn/connector/main.py +++ b/openvpn/connector/main.py @@ -23,7 +23,7 @@ # Add the traceback module if we're in debugging mode. # This will allow dumping of tracebacks when exceptions happens -if 'OPENVPN_CLOUD_DEBUG' in os.environ: +if 'OPENVPN_CONNECTOR_DEBUG' in os.environ: import traceback @@ -87,7 +87,7 @@ def main(): if cliopts.mode: run_mode = ConfigModes.parse(cliopts.mode[0]) - if 'OPENVPN_CLOUD_DEBUG' in os.environ: + if 'OPENVPN_CONNECTOR_DEBUG' in os.environ: print('Run mode: %s' % ConfigModes.to_string(run_mode)) # By default the root installation directory is / @@ -204,7 +204,7 @@ def main(): except BaseException as err: print('\n** ERROR ** ' + str(err)) - if 'OPENVPN_CLOUD_DEBUG' in os.environ: + if 'OPENVPN_CONNECTOR_DEBUG' in os.environ: print ('\nmain traceback:') print (traceback.format_exc())