public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-api] reduce the logging level of certain messages
Date: Fri, 22 Sep 2023 11:58:32 +0200	[thread overview]
Message-ID: <20230922095832.192110-1-m.sandoval@proxmox.com> (raw)

The (re)started messages happen whenever the service is started. These
messages do not indicate any error.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/bin/pmg-smtp-filter | 4 ++--
 src/bin/pmgpolicy       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/pmg-smtp-filter b/src/bin/pmg-smtp-filter
index 13da635..7da3de8 100755
--- a/src/bin/pmg-smtp-filter
+++ b/src/bin/pmg-smtp-filter
@@ -366,7 +366,7 @@ sub load_config {
     my $prop = $self->{server};
 
     if ($self->{ruledb}) {
-	$self->log (0, "reloading configuration $database");
+	$self->log ('info', "reloading configuration $database");
 	$self->{ruledb}->close ();
     }
 
@@ -426,7 +426,7 @@ sub pre_loop_hook {
 
     $prop->{log_level} = 3;
 
-    $self->log (0, "Filter daemon (re)started (max. $max_servers processes)");
+    $self->log ('info', "Filter daemon (re)started (max. $max_servers processes)");
 
     eval {  PMG::MailQueue::cleanup_active(); };
     $self->log (0, "Cleanup failures: $@") if $@;
diff --git a/src/bin/pmgpolicy b/src/bin/pmgpolicy
index 38c3621..df2e66f 100755
--- a/src/bin/pmgpolicy
+++ b/src/bin/pmgpolicy
@@ -290,7 +290,7 @@ sub pre_loop_hook {
 
     $prop->{log_level} = 3;
 
-    $self->log(0, "Policy daemon (re)started");
+    $self->log('info', "Policy daemon (re)started");
 
     $SIG{'USR1'} = sub {
 	# reloading server configuration
@@ -315,7 +315,7 @@ sub load_config {
     my $prop = $self->{server};
 
     if ($self->{ruledb}) {
-	$self->log(0, "reloading configuration $database");
+	$self->log('info', "reloading configuration $database");
 	$self->{ruledb}->close();
     }
 
-- 
2.39.2





             reply	other threads:[~2023-09-22  9:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-22  9:58 Maximiliano Sandoval [this message]
2023-09-27 17:41 ` [pmg-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230922095832.192110-1-m.sandoval@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=pmg-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal