Skip to content

Commit

Permalink
Issue #132: no debug info when in managed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdyer committed Apr 7, 2014
1 parent df0593f commit 78fb0c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bin/fteproxy
Expand Up @@ -99,6 +99,8 @@ class FTEMain(threading.Thread):

if self._args.quiet:
fte.conf.setValue('runtime.loglevel', 0)
if self._args.managed:
fte.conf.setValue('runtime.loglevel', 0)
if not self._args.quiet and not self._args.managed:
print """fteproxy Copyright (C) 2012-2014 Kevin P. Dyer <kdyer@cs.pdx.edu>
This program comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions fte/__init__.py
Expand Up @@ -47,13 +47,13 @@ class NegotiateTimeoutException(Exception):


def fatal_error(msg):
if fte.conf.getValue('runtime.loglevel') <= 1:
if fte.conf.getValue('runtime.loglevel') in [1,2]:
print 'ERROR:', msg
sys.exit(1)


def warn(msg):
if fte.conf.getValue('runtime.loglevel') <= 2:
if fte.conf.getValue('runtime.loglevel') in [2]:
print 'WARN:', msg


Expand Down

0 comments on commit 78fb0c7

Please sign in to comment.