Bug 29088 - Warning when connection to memcached fails is too long
Summary: Warning when connection to memcached fails is too long
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-22 21:29 UTC by Fridolin Somers
Modified: 2021-09-22 21:29 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.