Change few warning messages

Signed-off-by: Rares POP <rares.pop@ni.com>
This commit is contained in:
Rares POP 2018-07-04 11:39:28 +03:00
parent 569fe2a05a
commit 6fd736067d
No known key found for this signature in database
GPG Key ID: 896484D2DFF1EC72
3 changed files with 9 additions and 6 deletions

View File

@ -216,8 +216,11 @@ class SlackClient(object):
try:
groups_gen = itertools.chain(self._groups_from_pillar(groups_pillar_name).items(), use_groups.items())
except AttributeError:
log.warning('Failed to get groups from %s: %s', groups_pillar_name, self._groups_from_pillar(groups_pillar_name))
log.warning('or from config: %s', use_groups)
log.warning('Failed to get groups from %s: %s or from config: %s',
groups_pillar_name,
self._groups_from_pillar(groups_pillar_name),
use_groups
)
groups_gen = []
for name, config in groups_gen:
log.info('Trying to get %s and %s to be useful', name, config)
@ -231,7 +234,7 @@ class SlackClient(object):
ret_groups[name]['default_target'].update(config.get('default_target', {}))
ret_groups[name]['targets'].update(config.get('targets', {}))
except (IndexError, AttributeError):
log.warning("Couldn't use group %s. Check that targets is a dict and not a list", name)
log.warning("Couldn't use group %s. Check that targets is a dictionary and not a list", name)
log.debug('Got the groups: %s', ret_groups)
return ret_groups
@ -687,7 +690,7 @@ class SlackClient(object):
break
if len(msg) == 0:
count += 1
log.warning('len(msg) is zero')
log.warning('Skipping an empty message.')
continue # This one is a dud, get the next message
if msg.get('done'):
log.trace('msg is done')

View File

@ -100,7 +100,7 @@ def mapped(name,
if name not in active.keys():
# Open the map using cryptsetup. This does not pass any options.
if opts:
log.warning('passed cryptdev options are ignored when mapping immediately')
log.warning('Ignore cryptdev configuration when mapping immediately')
if __opts__['test']:
ret['result'] = None

View File

@ -426,7 +426,7 @@ def _delete_directory_smbprotocol(path, share='C$', conn=None, host=None, userna
conn = get_conn(host, username, password)
if conn is False:
return False
log.warning("PATH: %s %s", share, path)
log.debug("_delete_directory_smbprotocol - share: %s, path: %s", share, path)
tree = conn.tree_connect(share)
dir_open = Open(tree, path)