openQA
openQA copied to clipboard
Don't try and log without importing the log function
I saw some workers on one of our instance were stuck in a failed registration loop caused by this:
worker[16088]: [info] Registering with openQA http://localhost worker[16088]: [warn] Failed to register at http://localhost - 500 response: Failed: Undefined subroutine &OpenQA::WebAPI::Controller::API::V1::Worker::log_warning called at /usr/share/openqa/script/../lib/OpenQA/WebAPI/Controller/API/V1/Worker.pm line 114. worker[16088]: - trying again in 10 seconds
The log statement was moved from another file in 4928543c86, but the import wasn't also moved into the new file.
Signed-off-by: Adam Williamson [email protected]