Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
help
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Feb 20, 2017
1 parent cf01ae9 commit 60fb18f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/cachetMonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
import requests
import httplib
import time
from system.logging import Logger
import sys

from system.logging import Logger
from utils import Utils


Expand Down Expand Up @@ -102,12 +103,14 @@ def __init__(self):
self.api_url = self.config['api_url'] + '/api/v1'
self.api_token = self.config['api_token']
self.maxRetries = self.config['retries']
print(self.base_url)
print(self.api_url)

try:
if self.checkInitialPing() == 200:
self.checkSites()
else:
exit("Unable to connect to %s" % self.base_url)
sys.exit("Unable to connect to %s" % self.base_url)
except Exception as e:
self.logs.error(e)
exit(1)
Expand Down

0 comments on commit 60fb18f

Please sign in to comment.