BMCWeb : Fix a warning spotted in meson scan build

- This commit fixes a warning that is spotted in meson scan
  build which is run as a part of CI.

```
../../../redfish-core/include/../lib/log_services.hpp:1519:9: warning: Value stored to 'ret' is never read
         ret = sd_journal_seek_realtime_usec(journal.get(), ts);
         ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
```

Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I6800ef9d908494d8328ab8e66c12778df394023c
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index df6e210..2284e23 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -1517,6 +1517,13 @@
         std::string idStr;
         bool firstEntry = true;
         ret = sd_journal_seek_realtime_usec(journal.get(), ts);
+        if (ret < 0)
+        {
+            BMCWEB_LOG_ERROR << "failed to seek to an entry in journal"
+                             << strerror(-ret);
+            messages::internalError(asyncResp->res);
+            return;
+        }
         for (uint64_t i = 0; i <= index; i++)
         {
             sd_journal_next(journal.get());