File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -746,15 +746,18 @@ protected function check2(): void {
746
746
747
747
if ($ good_count > 0 && $ bad_count > 0 ) {
748
748
$ this ->setStatus ('warning ' , 'Connection warnings. ' , ['warnings ' => $ msgs ]);
749
+ \Drupal::logger ('drupal_ping ' )->warning ('Memcache connection warning. Warning messages: @warnings ' , ['@warnings ' => json_encode ($ msgs )]);
749
750
return ;
750
751
}
751
752
752
753
if ($ good_count < 1 && $ bad_count > 0 ) {
753
754
$ this ->setStatus ('warning ' , 'Connection errors. ' , ['errors ' => $ msgs ]);
755
+ \Drupal::logger ('drupal_ping ' )->error ('Memcache connection error. Error messages: @errors ' , ['@errors ' => json_encode ($ msgs )]);
754
756
return ;
755
757
}
756
758
757
- $ this ->setStatus ('error ' , 'Internal error. ' );
759
+ \Drupal::logger ('drupal_ping ' )->error ('Memcache internal error. ' );
760
+ $ this ->setStatus ('warning ' , 'Internal error. ' );
758
761
}
759
762
760
763
}
You can’t perform that action at this time.
0 commit comments