Skip to content

Commit

Permalink
ENT-3414: Move promise comment to verbose
Browse files Browse the repository at this point in the history
Promise comments are printed in verbose logs for all promise types except file
change monitoring. This can cause extra noise and multi-line promise comments
are not always handled well in syslog filtering.

Changelog: Title
  • Loading branch information
nickanderson committed Nov 21, 2017
1 parent 1b47252 commit 0e4a1fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cf-agent/files_changes.c
Expand Up @@ -477,7 +477,7 @@ bool FileChangesCheckAndUpdateHash_impl(const char *filename,
Log(LOG_LEVEL_NOTICE, "Hash '%s' for '%s' changed!", HashNameFromId(type), filename);
if (pp->comment)
{
Log(LOG_LEVEL_NOTICE, "Preceding promise '%s'", pp->comment);
Log(LOG_LEVEL_VERBOSE, "Preceding promise '%s'", pp->comment);
}
}
}
Expand Down Expand Up @@ -748,7 +748,7 @@ void FileChangesCheckAndUpdateStats(const char *file, struct stat *sb, bool upda

if (pp->comment)
{
Log(LOG_LEVEL_NOTICE, "Preceding promise '%s'", pp->comment);
Log(LOG_LEVEL_VERBOSE, "Preceding promise '%s'", pp->comment);
}

if (update && !DONTDO)
Expand Down

0 comments on commit 0e4a1fd

Please sign in to comment.