Project

General

Profile

Actions

Defect #2684

closed

Some messages are missing in the Logging events

Added by Alena Peterová almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Vít Švanda
Category:
Logging
Target version:
Start date:
02/12/2021
Due date:
% Done:

100%

Estimated time:
8.00 h
Affected versions:
Owner:

Description

Tested on 10.7.2 when logger logs also in the DB. See the logback configuration in the attachment.

Some messages aren't saved in the logging events, e.g. when getting an invalid certificate with SSL connection.
(Connector test failed javax.naming.CommunicationException: simple bind failed: 172.31.255.180:636 [Root exception is javax.net.ssl.SSLHandshakeException: No subject alternative names matching IP address 172.31.255.180 found])

Probably the message is too long.

Here are some errors from the PostgreSQL log (the first is caused by the wrong certificate, the others unknown).

2021-02-12 14:34:05.487 UTC [783] ERROR:  value too long for type character varying(254)
2021-02-12 14:34:05.487 UTC [783] STATEMENT:  INSERT INTO logging_event_exception (event_id, i, trace_line) VALUES ($1, $2, $3)

2021-02-03 12:34:02.812 UTC [758] ERROR:  invalid byte sequence for encoding "UTF8": 0x00
2021-02-03 12:34:02.812 UTC [758] STATEMENT:  INSERT INTO logging_event_exception (event_id, i, trace_line) VALUES ($1, $2, $3)

2021-02-03 14:21:00.326 UTC [1116] ERROR:  invalid byte sequence for encoding "UTF8": 0x00
2021-02-03 14:21:00.326 UTC [1116] STATEMENT:  INSERT INTO logging_event (timestmp, formatted_message, logger_name, level_string, thread_name, reference_flag, arg0, arg1, arg2, arg3, caller_filename, caller_class, caller_method, caller_line) VALUES ($1, $2, $3 ,$4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)

Files

logback-spring.xml (1.7 KB) logback-spring.xml Alena Peterová, 02/12/2021 02:32 PM

Related issues

Related to IdStory Identity Manager - Defect #717: Cannot save 0x00 to Postgres columnClosedVít Švanda09/25/2017

Actions
Related to IdStory Identity Manager - Task #574: New agenda for LOGsClosedOndřej Kopr07/13/2017

Actions
Related to bcv-czechidm - Task #2737: Adjust DB logging when CzechIdM 11.0.0 is releasedNew03/29/2021

Actions
Actions

Also available in: Atom PDF