item_updater: Add a log to indicate duplicate image upload.

Added a log to indicate that a user tried to upload a
PNOR version that already exists on the system. Thus no
additional software objects were created as one already
exists.

Resolves openbmc/openbmc#2093

Change-Id: I6d9fe8c1ca65cce88b9dedc2cfb30c0da93b6e35
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/item_updater.cpp b/item_updater.cpp
index 3bf085b..ee4aa0a 100755
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -125,6 +125,11 @@
                                 filePath,
                                 *this)));
     }
+    else
+    {
+        log<level::INFO>("Software Object with the same version already exists",
+                        entry("VERSION_ID=%s", versionId));
+    }
     return;
 }