diff mbox

policycoreutils/restorecond: Decrease loglevel of termination message

Message ID 1483523947-14979-1-git-send-email-vmojzis@redhat.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Vit Mojzis Jan. 4, 2017, 9:59 a.m. UTC
Decrease loglevel of termination message
(eg. "restorecond[709]: terminated") to LOG_INFO because it is printed
upon normal shutdown of the daemon.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1264505

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
---
 restorecond/watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

James Carter Jan. 6, 2017, 7:30 p.m. UTC | #1
On 01/04/2017 04:59 AM, Vit Mojzis wrote:
> Decrease loglevel of termination message
> (eg. "restorecond[709]: terminated") to LOG_INFO because it is printed
> upon normal shutdown of the daemon.
>
> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1264505
>
> Signed-off-by: Vit Mojzis <vmojzis@redhat.com>

Applied.

Thanks,

> ---
>  restorecond/watch.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/restorecond/watch.c b/restorecond/watch.c
> index 2be45d4..691df82 100644
> --- a/restorecond/watch.c
> +++ b/restorecond/watch.c
> @@ -179,7 +179,7 @@ int watch(int fd, const char *watch_file)
>  			syslog(LOG_ERR, "Read error (%s)", strerror(errno));
>  			return 0;
>  		}
> -		syslog(LOG_ERR, "terminated");
> +		syslog(LOG_INFO, "terminated");
>  		return -1;
>  	} else if (!len)
>  		/* BUF_LEN too small? */
>
diff mbox

Patch

diff --git a/restorecond/watch.c b/restorecond/watch.c
index 2be45d4..691df82 100644
--- a/restorecond/watch.c
+++ b/restorecond/watch.c
@@ -179,7 +179,7 @@  int watch(int fd, const char *watch_file)
 			syslog(LOG_ERR, "Read error (%s)", strerror(errno));
 			return 0;
 		}
-		syslog(LOG_ERR, "terminated");
+		syslog(LOG_INFO, "terminated");
 		return -1;
 	} else if (!len)
 		/* BUF_LEN too small? */