Bug 29088

Summary: Warning when connection to memcached fails is too long
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Fridolin Somers 2021-09-22 21:29:02 UTC
Actually when connection to memcached fails a warning is created :

    unless ($ismemcached) {
        warn "\nConnection to the memcached servers '@servers' failed. Are the unix socket permissions set properly? Is the host reachable?\nIf you ignore this warning, you will face performance issues\n";
        return $self;
    }

This will generate 2 lines plus one empty line.

It it shown even for CLI scripts.

During some system operations or bash scripts, we may shutdown memcached on purpose.
In this case warning is annoying.

I propose we show a sorter text, and maybe a link to a wiki page.

We may choose to remove this warning for it can SPAM log files.