Skip to content

Commit 533916d

Browse files
committed
Add debug logs to serialize method in FileSerializationUtil
1 parent e05daf7 commit 533916d

File tree

1 file changed

+4
-0
lines changed
  • components/org.wso2.carbon.identity.api.server.common/src/main/java/org/wso2/carbon/identity/api/server/common/file

1 file changed

+4
-0
lines changed

components/org.wso2.carbon.identity.api.server.common/src/main/java/org/wso2/carbon/identity/api/server/common/file/FileSerializationUtil.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public class FileSerializationUtil {
6363
*/
6464
public static <T> FileContent serialize(T entity, String fileName, String fileType,
6565
FileSerializationConfig config) throws FileSerializationException {
66+
if (LOG.isDebugEnabled()) {
67+
LOG.debug(String.format("Serializing entity of type %s to file %s with type %s",
68+
entity.getClass().getSimpleName(), fileName, fileType));
69+
}
6670
if (config == null) {
6771
config = new FileSerializationConfig();
6872
}

0 commit comments

Comments
 (0)