Uploaded image for project: 'mod-data-import'
  1. mod-data-import
  2. MODDATAIMP-758

Improve logging (hide SQL requests)

    XMLWordPrintable

Details

    • Folijet Sprint 156
    • 3
    • Folijet
    • Orchid (R1 2023)

    Description

      Hide SQL requests (org.folio.rest.persist.PostgresClient) from log files for the next modules:

      • mod-data-import
      • mod-source-record-storage
      • mod-data-import-converter-storage
      • mod-inventory-storage

      This class logs SQL queries at the INFO level, which leads to a very large size of log files.

      SRS: a lot of messages like this:
      2023-01-05 09:28:12.246 WARN AbstractConfig The configuration 'ssl.protocol' was supplied but isn't a known config.
      ....
      2023-01-05 09:28:12.246 WARN AbstractConfig The configuration 'ssl.truststore.type' was supplied but isn't a known config.

      SRM: move to TRACE level or decrease defaultRules json
      2023-01-05 01:55:50.850 [vert.x-eventloop-thread-1] [572525/proxy;692150/tenant] [diku] [] [mod_source_record_manager] DEBUG ppingRuleServiceImpl saveRulesIfNotExist:: recordType MARC_BIB, defaultRules {
      "001": [
      {

      add recordId, or jobExecutionId, or other attributes to sendEventToKafka:
      2023-01-05 12:46:12.034 DEBUG EventHandlingUtil sendEventToKafka:: Starting to send event to Kafka for eventType: DI_MARC_FOR_UPDATE_RECEIVED
      2023-01-05 12:46:12.035 INFO EventHandlingUtil logSendingSucceeded:: Event with type: DI_MARC_FOR_UPDATE_RECEIVED and recordId: b17ea14c-c53a-44fa-baec-abc973d3cc45 was sent to kafka

      mod-inventory: a lot of messages like this:
      2023-01-05 01:44:27.078 WARN AbstractConfig [1498eqId] The configuration 'ssl.keystore.type' was supplied but isn't a known config.
      ...
      2023-01-05 01:44:27.078 WARN AbstractConfig [1498eqId] The configuration 'ssl.truststore.location' was supplied but isn't a known config.

      hide messages below:
      2023-01-05 01:44:27.158 INFO AbstractConfig [1578eqId] ConsumerConfig values:
      2023-01-05 01:44:31.805 INFO GroupResponseHandler [6225eqId] [Consumer clientId=consumer-DI_SRS_MARC_HOLDING_RECORD_CREATED.mod-inventory-19.1.0-82....
      2023-01-05 01:54:58.456 INFO Metadata [632876eqId] [Consumer clientId=consumer-srs.marc-bib.mod-inventory-19.1.0-10, groupId=srs.marc-bib.mod-inventory-19.1.0] Resetting the last seen epoch of partition
      2023-01-05 01:54:58.470 INFO ConsumerCoordinator [632890eqId] [Consumer clientId=consumer-srs.marc-bib.mod-inventory-19.1.0-10, groupId=srs.marc-bib.mod-inventory-19.1.0] Revoke previously assigned partitions

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Kyrylo Shulzhenko Kyrylo Shulzhenko
                afedasiuk Aliaksandr Fedasiuk
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases