[ 
https://issues.apache.org/jira/browse/MINIFICPP-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ferenc Gerlits updated MINIFICPP-2499:
--------------------------------------
    Description: 
Currently, when MiNiFi loads Python processors, it tries to process all files 
as Processor definitions, and logs error like this for all other (helper) files:
{noformat}
[error] Cannot load helper_functions: No python class 'helper_functions' was 
found!{noformat}
Since this is normal behavior, these logs should not be errors; probably info 
level is enough.

We could also add more details to the logs, eg. "file X contains no Python 
classes, so it will be treated as a helper file" or "file X contains Python 
classes Y and Z, neither matches the file name, so it will be treated as a 
helper file" etc.

  was:
Currently, when MiNiFi loads Python processors, it tries to process all files 
as Processor definitions, and logs error like this for all other (helper) files:
{noformat}
[error] Cannot load helper_functions: No python class 'helper_functions' was 
found!{noformat}
Since this is normal behavior, these logs should not be errors; probably info 
level is enough.

We could also add more details to the logs, eg. "file X contains to Python 
classes, it will be treated as a helper file" or "file X contains Python 
classes Y and Z, neither matches the file name, so it will be treated as a 
helper file" etc.


> Do not log errors when loading Python helper files
> --------------------------------------------------
>
>                 Key: MINIFICPP-2499
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2499
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Ferenc Gerlits
>            Priority: Minor
>
> Currently, when MiNiFi loads Python processors, it tries to process all files 
> as Processor definitions, and logs error like this for all other (helper) 
> files:
> {noformat}
> [error] Cannot load helper_functions: No python class 'helper_functions' was 
> found!{noformat}
> Since this is normal behavior, these logs should not be errors; probably info 
> level is enough.
> We could also add more details to the logs, eg. "file X contains no Python 
> classes, so it will be treated as a helper file" or "file X contains Python 
> classes Y and Z, neither matches the file name, so it will be treated as a 
> helper file" etc.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to