Merge "Log multiple IPs using the same session or the same user account"
[lhc/web/wiklou.git] / includes / session / SessionManager.php
index 2dc8910..d3b7a2d 100644 (file)
@@ -745,13 +745,14 @@ final class SessionManager implements SessionManagerInterface {
                                                if ( $newProviderMetadata !== $providerMetadata ) {
                                                        $newParams['metadata'] = $newProviderMetadata;
                                                }
-                                       } catch ( \UnexpectedValueException $ex ) {
+                                       } catch ( MetadataMergeException $ex ) {
                                                $this->logger->warning(
                                                        'Session "{session}": Metadata merge failed: {exception}',
                                                        array(
                                                                'session' => $info,
                                                                'exception' => $ex,
-                                               ) );
+                                                       ) + $ex->getContext()
+                                               );
                                                return false;
                                        }
                                }