question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi there, can someone help to clear unnecessary logs, such us

фев 06 14:42:07 user-VirtualBox patroni[14532]: 2018-02-06 14:42:07,473 INFO: Lock owner: postgresql0; I am postgresql0
фев 06 14:42:07 user-VirtualBox patroni[14532]: 2018-02-06 14:42:07,482 INFO: no action.  i am the leader with the lock

I tried to change postgresql parameters, such us:

    log_min_messages: 'NOTICE'
    client_min_messages: 'NOTICE'
    log_min_error_statement: 'NOTICE'

and init.py on source:

logging.basicConfig(format=logformat, level=logging.WARNING)

But nothing changes

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrquokkacommented, Feb 9, 2018

Alexey, thanks for answer. Because system work stable, without reboot and changes, but they write to syslog every second. I really need only first message who i master and messanges when patroni change master, no more

0reactions
combrscommented, Jan 24, 2019
  • to log repeating messages about leader & lock in batches. For example, in config set logging option ‘log_batches: 100’ and then buffer repeated messages in memory. Write it to disk like

[Repeated 100 times] : Lock owner: postgresql0; I am postgresql0; no action; i’m a leader with the lock

In one string Other messages, of course, write immediately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging - Wikipedia
Logging is the process of cutting, processing, and moving trees to a location for transport. It may include skidding, on-site processing, and loading...
Read more >
logging — Logging facility for Python — Python 3.11.1 ...
This module defines functions and classes which implement a flexible event logging system for applications and libraries.
Read more >
Logging | Definition & Facts - Encyclopedia Britannica
logging, process of harvesting trees, sawing them into appropriate lengths (bucking), and transporting them (skidding) to a sawmill.
Read more >
What is logging? - The Rainforest - Mongabay
Logging, or commercial logging, involves cutting trees for sale as timber or pulp. The timber is used to build homes, furniture, etc and...
Read more >
Logging - Overview
By many measures, logging is the most dangerous occupation in the United States. The tools and equipment such as chain saws and logging...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found