diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-05-08 00:03:39 +0200 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-05-08 00:03:39 +0200 |
commit | 6aa6dd514d5b80c9f36fec6c56d4094fd182de61 (patch) | |
tree | 595ee719da6e5201f47bf906a9a66af797f75045 /gitautodeploy/gitautodeploy.py | |
parent | bc464eafdb743bd2cd6db2525f661de13ca4ef9a (diff) | |
download | Git-Auto-Deploy-6aa6dd514d5b80c9f36fec6c56d4094fd182de61.zip Git-Auto-Deploy-6aa6dd514d5b80c9f36fec6c56d4094fd182de61.tar.gz Git-Auto-Deploy-6aa6dd514d5b80c9f36fec6c56d4094fd182de61.tar.bz2 |
Ability to log incoming request in a way usable for test cases
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r-- | gitautodeploy/gitautodeploy.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py index 98ebeb1..3b7660e 100644 --- a/gitautodeploy/gitautodeploy.py +++ b/gitautodeploy/gitautodeploy.py @@ -28,6 +28,7 @@ class GitAutoDeploy(object): @staticmethod def debug_diagnosis(port): + """Display information about what process is using the specified port.""" import logging logger = logging.getLogger() @@ -43,6 +44,7 @@ class GitAutoDeploy(object): @staticmethod def get_pid_on_port(port): + """Determine what process (PID) is using a specific port.""" import os with open("/proc/net/tcp", 'r') as f: @@ -137,6 +139,7 @@ class GitAutoDeploy(object): logger.error('Could not find regexp match in path: %s' % url) def kill_conflicting_processes(self): + """Attempt to kill any process already using the configured port.""" import os import logging import signal |