Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions root/app/swag-ondemand.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def __init__(self):
super().__init__()
self.daemon = True
self.ondemand_containers = {}
self.init_docker()

def init_docker(self):
try:
docker_host = os.environ.get("DOCKER_HOST", None)
if docker_host:
Expand Down Expand Up @@ -117,6 +120,8 @@ def run(self):

logfile = open(ACCESS_LOG_FILE, "r")
for line in self.tail(logfile):
if '" 302 ' in line:
continue
for part in line.split():
if not part.startswith("http"):
continue
Expand Down