From: schillinge Date: Wed, 13 Feb 2019 07:07:52 +0000 (+0100) Subject: Do not spam the logs with server names at INFO level X-Git-Tag: v6.0.0~32 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=2efa0c599b9b809ed925874d949926a4508c4036;p=osm%2Fvim-emu.git Do not spam the logs with server names at INFO level This logged two lines at INFO. I guess DEBUG and a single line suffices in this case. Change-Id: I88a04299571779066c6ca7a0bd8389ae3f40fe31 Signed-off-by: schillinge --- diff --git a/src/emuvim/api/openstack/compute.py b/src/emuvim/api/openstack/compute.py index d7e944b..873daa4 100755 --- a/src/emuvim/api/openstack/compute.py +++ b/src/emuvim/api/openstack/compute.py @@ -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):