plugin.c: Made use of log_error()