Add debug output

This commit is contained in:
Nick Zeljkovic 2018-06-05 23:49:35 +02:00
parent 68e56c1502
commit 9859b0a43c
No known key found for this signature in database
GPG Key ID: 71CFE811DCA55D96

View File

@ -6318,6 +6318,7 @@ def serialize(name,
try:
existing_data = __serializers__[deserializer_name](fhr, **options.get(serializer_name, {}))
except (TypeError, salt.serializers.DeserializationError):
log.debug('DeserializationError exception caught, trying to merge without serializer_opts: %s', options.get(serializer_name, {}))
fhr.seek(0)
existing_data = __serializers__[deserializer_name](fhr)