mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
more clean up
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14001 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
14
scripts/python/freepy/globals.py
Normal file
14
scripts/python/freepy/globals.py
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
import os
|
||||
|
||||
if os.environ.has_key('FREEPY_DEBUG_ON'):
|
||||
# pull from environment if avail
|
||||
FREEPY_DEBUG_ON = os.environ['FREEPY_DEBUG_ON']
|
||||
else:
|
||||
# fall back to hardcoded value
|
||||
#FREEPY_DEBUG_ON = False
|
||||
FREEPY_DEBUG_ON = True
|
||||
|
||||
def debug(msg):
|
||||
if FREEPY_DEBUG_ON:
|
||||
print msg
|
Reference in New Issue
Block a user