Fix Redfish Event monitor issue in listener

Issue: Listener not receiving the events generated. SubmitTestEvent
directly writes a test event to the HttpClient and listener sees it.
But, in the case of services generated events, redfish event logs are
written to /var/log/redfish. iNotify is used to determine if any new
Redfish event log is generated.

Below patch causing this issue not to notify the redfish event log to
listener.
https://gerrit.openbmc.org/c/openbmc/bmcweb/+/70915

Fix: Code changes made to get iNotify properly so that listener receives
the events generated by server once subscription is successful.

Tested:
- Once subscription generated successfully. Tested client receiving
 events successfully by running command on BMC console

Signed-off-by: poram srinivasa rao <poramx.srinivasa.rao@intel.com>
Signed-off-by: Jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: Id6ff5236eb57ba861210696e41caa838ab78034e
diff --git a/src/webserver_run.cpp b/src/webserver_run.cpp
index 8088596..29683b9 100644
--- a/src/webserver_run.cpp
+++ b/src/webserver_run.cpp
@@ -87,7 +87,7 @@
 
     crow::login_routes::requestRoutes(app);
 
-    if constexpr (BMCWEB_REDFISH_DBUS_LOG)
+    if constexpr (!BMCWEB_REDFISH_DBUS_LOG)
     {
         int rc = redfish::EventServiceManager::startEventLogMonitor(*io);
         if (rc != 0)