Debug Performance

Since LS eCommerce – Magento depends heavily on web services to communicate with LS Central, all communication that takes place between Magento and LS Commerce is logged in the omniclient.log.

Merchants often need to know the time elapsed by each request for analyzing the performance and for other debugging requirements. For that purpose, Magento also calculates and logs the time taken by each request in the omniclient.log. The logged time is basically the difference of two time stamps, that is first when the request is initiated, and second when the response is received.

This can be seen as Time Elapsed in the below example:

Copy
[2021-09-13 13:04:37] OmniLoggerHandler.DEBUG: ==== REQUEST ==== 09-13-2021 13:04:17.141734 ==== ReplEcommHierarchy ==== 
[2021-09-13 13:04:37] OmniLoggerHandler.DEBUG:  
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://lsretail.com/LSOmniService/Loy/2017" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://lsretail.com/LSOmniService/EComm/2017/Service"> 
  <SOAP-ENV:Header/> 
  <SOAP-ENV:Body> 
    <ns2:ReplEcommHierarchy> 
      <ns2:replRequest> 
        <ns1:AppId>d67371d8-4d6d-48b5-9ed8-2f126217fb8c</ns1:AppId> 
        <ns1:BatchSize>2000</ns1:BatchSize> 
        <ns1:FullReplication>false</ns1:FullReplication> 
        <ns1:LastKey xsi:nil="true"/> 
        <ns1:MaxKey xsi:nil="true"/> 
        <ns1:StoreId>S0013</ns1:StoreId> 
        <ns1:TerminalId xsi:nil="true"/> 
      </ns2:replRequest>
    </ns2:ReplEcommHierarchy> 
  </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

[2021-09-13 13:04:37] OmniLoggerHandler.DEBUG: ==== RESPONSE ==== 09-13-2021 13:04:37.499727 ==== ReplEcommHierarchy ====  
[2021-09-13 13:04:37] OmniLoggerHandler.DEBUG: ==== Time Elapsed ==== 0 minute(s) 20.357993 second(s) ==== ReplEcommHierarchy ==== 
[2021-09-13 13:04:37] OmniLoggerHandler.DEBUG:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> 
  <s:Body> 
    <ReplEcommHierarchyResponse xmlns="http://lsretail.com/LSOmniService/EComm/2017/Service"> 
      <ReplEcommHierarchyResult xmlns:a="http://lsretail.com/LSOmniService/Base/2017" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> 
        <a:Hierarchies> 
          <a:ReplHierarchy> 
            <a:Description>Clothing items</a:Description> 
            <a:Id>FASHIONCOSMETICS</a:Id> 
            <a:IsDeleted>false</a:IsDeleted> 
            <a:Priority>0</a:Priority> 
            <a:SalesType/> 
            <a:StartDate>2018-03-01T08:00:00+08:00</a:StartDate> 
            <a:Type>ItemDeal</a:Type> 
            <a:ValidationScheduleId/> 
          </a:ReplHierarchy> 
        </a:Hierarchies> 
        <a:LastKey i:nil="true"/> 
        <a:MaxKey i:nil="true"/> 
        <a:RecordsRemaining>0</a:RecordsRemaining> 
      </ReplEcommHierarchyResult> 
    </ReplEcommHierarchyResponse> 
  </s:Body> 
</s:Envelope>