Skip to content
Snippets Groups Projects
Commit 10dde592 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Added deployment name in logs

parent d9f5835b
No related branches found
No related tags found
1 merge request!136Added deployment name in logs
......@@ -300,7 +300,7 @@ class GVMClient():
retry = self.CONNECTION_RETRIES
while(retry > 0):
try:
logging.debug('GMP CLIENT CREATION...')
logging.debug('Creation of the GMP Client')
logging.debug(f'host_ip: {self.host_ip}')
self.client = Gmp(TLSConnection(hostname = self.host_ip),
transform=EtreeTransform())
......@@ -310,11 +310,12 @@ class GVMClient():
retry -= 1
sleep(0.5)
logging.debug('GMP CLIENT CREATED')
logging.debug('GMP Client Created')
if retry == 0:
raise GvmException("Impossible connect to the gmp endpoint even after 5 retries")
self.client.authenticate(self.auth_name, self.auth_passwd)
logging.debug('GMP Client Authenticated')
def get_version(self) -> str:
res = self.client.get_version()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment