Bug 1651688
Summary: | red herring messages SQL Warning Code: 0, SQLState: 00000 several times per second in candlepin.log and error.log | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jan Jansky <jjansky> | |
Component: | Candlepin | Assignee: | satellite6-bugs <satellite6-bugs> | |
Status: | CLOSED NOTABUG | QA Contact: | jcallaha | |
Severity: | low | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.3.4 | CC: | aperotti, jjansky, khowell, ojanus, pmoravec, rlavande, vmeghana | |
Target Milestone: | Unspecified | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1667149 (view as bug list) | Environment: | ||
Last Closed: | 2019-10-22 15:03:50 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1667149 | |||
Bug Blocks: |
Description
Jan Jansky
2018-11-20 15:10:03 UTC
First I have seen this, what version of postgres is installed on the system? SQL Warning Code: 0, SQLState: 00000 is not an error. As you see in the [Postgresql Documentation](https://www.postgresql.org/docs/10/errcodes-appendix.html), code 00000 indicates successful completion. These logs can be turned ON/OFF in /var/lib/pgsql/data/postgresql.conf in the section "When to Log". Below is the relevant section. There are multiple levels and level "debug2" logs successful completion as a warning. ``` # - When to Log - client_min_messages = debug2 # debug5 # debug4 # debug3 # debug2 # debug1 # log # notice # warning # error log_min_messages = debug2 # debug5 # debug4 # debug3 # debug2 # debug1 # info # notice # warning # error # log # fatal # panic log_min_error_statement = debug2 # debug5 # debug4 # debug3 # debug2 # debug1 # info # notice # warning # error # log # fatal # panic (effectively off) #log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements # and their durations, > 0 logs only # statements running at least this number # of milliseconds ``` |