Do not spam the logs with server names at INFO level 25/7225/1
authorschillinge <ablu@mail.uni-paderborn.de>
Wed, 13 Feb 2019 07:07:52 +0000 (08:07 +0100)
committerschillinge <ablu@mail.uni-paderborn.de>
Wed, 13 Feb 2019 07:32:47 +0000 (08:32 +0100)
This logged two lines at INFO. I guess DEBUG and a single line suffices
in this case.

Change-Id: I88a04299571779066c6ca7a0bd8389ae3f40fe31
Signed-off-by: schillinge <ablu@mail.uni-paderborn.de>
src/emuvim/api/openstack/compute.py

index d7e944b..873daa4 100755 (executable)
@@ -587,11 +587,10 @@ class OpenstackCompute(object):
         This function provides a shorter name if needed
         """
         if len(name) > char_limit:
-            LOG.info("Long server name: {}".format(name))
             # construct a short name
             h = hashlib.sha224(name).hexdigest()
             h = h[0:char_limit]
-            LOG.info("Short server name: {}".format(h))
+            LOG.debug("Shortened server name '%s' to '%s'" % (name, h))
         return name
 
     def delete_server(self, server):