plugin: make the info about non-executable file in plugins dir and Error log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2017-07-16 11:04:25 +02:00
parent 71bb41771c
commit b0d4eac41d
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -32,7 +32,7 @@ func linuxLoadFunc(pluginDir string) ([]iplugin.Plugin, error) {
// file is not executable let's not load it
// this is to prevent loading plugins from for example non-executable
// mounts, some /tmp mounts are marked as such for security
log.Warningf("non-executable file in plugins directory: %s", fi)
log.Errorf("non-executable file in plugins directory: %s", fi)
return nil
}