diff --git a/common/djangoapps/status/status.py b/common/djangoapps/status/status.py index 2b33cf5628..d8cb3f5e8f 100644 --- a/common/djangoapps/status/status.py +++ b/common/djangoapps/status/status.py @@ -25,5 +25,5 @@ def get_site_status_msg(): return content except: - log.debug("Error while getting a status message: {0}".format(sys.exc_info())) + log.exception("Error while getting a status message.") return None diff --git a/lms/envs/common.py b/lms/envs/common.py index bbd36c1ae8..d51f688a55 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -97,12 +97,6 @@ GENERATE_PROFILE_SCORES = False XQUEUE_WAITTIME_BETWEEN_REQUESTS = 5 # seconds -# Used for per-maching caching -try: - HOSTNAME = socket.gethostname() -except: - HOSTNAME = 'localhost' - ############################# SET PATH INFORMATION ############################# PROJECT_ROOT = path(__file__).abspath().dirname().dirname() # /mitx/lms REPO_ROOT = PROJECT_ROOT.dirname()