Github user ijokarumawak commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/3122#discussion_r230257806
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestLogMessage.java
 ---
    @@ -57,7 +57,7 @@ MockComponentLog getMockComponentLog() {
         public void before() throws InitializationException {
             testableLogMessage = new TestableLogMessage();
             runner = TestRunners.newTestRunner(testableLogMessage);
    -
    +        runner.setValidateExpressionUsage(false);
    --- End diff --
    
    Hmm, I think changing logLevel based on expression makes sense. For 
example, if you want to debug for a particular type of FlowFiles, you'd use EL 
to write WARN level log for specific attribute value and use TRACE/DEBUG for 
others to minimize the noise. I don't think specifying log level by text is a 
critical issue..


---

Reply via email to