all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pmg-devel] [PATCH pmg-api] reduce the logging level of certain messages
@ 2023-09-22  9:58 Maximiliano Sandoval
  2023-09-27 17:41 ` [pmg-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Maximiliano Sandoval @ 2023-09-22  9:58 UTC (permalink / raw)
  To: pmg-devel

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pmg-devel] applied: [PATCH pmg-api] reduce the logging level of certain messages
  2023-09-22  9:58 [pmg-devel] [PATCH pmg-api] reduce the logging level of certain messages Maximiliano Sandoval
@ 2023-09-27 17:41 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2023-09-27 17:41 UTC (permalink / raw)
  To: Maximiliano Sandoval, pmg-devel

Am 22/09/2023 um 11:58 schrieb Maximiliano Sandoval:
> 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(-)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-27 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-22  9:58 [pmg-devel] [PATCH pmg-api] reduce the logging level of certain messages Maximiliano Sandoval
2023-09-27 17:41 ` [pmg-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal