diff --git a/FlowPlugins/CommunityFlowPlugins/file/compareFileSize/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/file/compareFileSize/1.0.0/index.js index e403445..4649b88 100644 --- a/FlowPlugins/CommunityFlowPlugins/file/compareFileSize/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/file/compareFileSize/1.0.0/index.js @@ -38,12 +38,18 @@ var plugin = function (args) { args.inputs = lib.loadDefaultValues(args.inputs, details); var outputNumber = 1; if (args.inputFileObj.file_size < args.originalLibraryFile.file_size) { + args.jobLog("Working of size ".concat(args.inputFileObj.file_size) + + " is smaller than original file of size ".concat(args.originalLibraryFile.file_size)); outputNumber = 1; } else if (args.inputFileObj.file_size === args.originalLibraryFile.file_size) { + args.jobLog("Working of size ".concat(args.inputFileObj.file_size) + + " is same size as original file of size ".concat(args.originalLibraryFile.file_size)); outputNumber = 2; } else if (args.inputFileObj.file_size > args.originalLibraryFile.file_size) { + args.jobLog("Working of size ".concat(args.inputFileObj.file_size) + + " is larger than original file of size ".concat(args.originalLibraryFile.file_size)); outputNumber = 3; } return { diff --git a/FlowPluginsTs/CommunityFlowPlugins/file/compareFileSize/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/file/compareFileSize/1.0.0/index.ts index c1a041e..726d0c6 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/file/compareFileSize/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/file/compareFileSize/1.0.0/index.ts @@ -45,10 +45,16 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => { let outputNumber = 1; if (args.inputFileObj.file_size < args.originalLibraryFile.file_size) { + args.jobLog(`Working of size ${args.inputFileObj.file_size}` + + ` is smaller than original file of size ${args.originalLibraryFile.file_size}`); outputNumber = 1; } else if (args.inputFileObj.file_size === args.originalLibraryFile.file_size) { + args.jobLog(`Working of size ${args.inputFileObj.file_size}` + + ` is same size as original file of size ${args.originalLibraryFile.file_size}`); outputNumber = 2; } else if (args.inputFileObj.file_size > args.originalLibraryFile.file_size) { + args.jobLog(`Working of size ${args.inputFileObj.file_size}` + + ` is larger than original file of size ${args.originalLibraryFile.file_size}`); outputNumber = 3; }