From 8e1582f76ee14efb83f1e8639fb03ec9601f7a6f Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Wed, 12 Mar 2014 21:25:10 +0100 Subject: [PATCH] Logging an error in case of absent name. --- .../src/com/intellij/remote/RemoteConnectionType.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/remote/RemoteConnectionType.java b/platform/platform-impl/src/com/intellij/remote/RemoteConnectionType.java index ce6c6352d362..d939c74a4a6e 100644 --- a/platform/platform-impl/src/com/intellij/remote/RemoteConnectionType.java +++ b/platform/platform-impl/src/com/intellij/remote/RemoteConnectionType.java @@ -1,5 +1,7 @@ package com.intellij.remote; +import com.intellij.openapi.diagnostic.Logger; + /** * This class denotes the type of the source to obtain remote credentials. * @@ -27,11 +29,14 @@ public enum RemoteConnectionType { */ NONE; + private static final Logger LOG = Logger.getInstance(RemoteConnectionType.class); + public static RemoteConnectionType findByName(String name) { try { return valueOf(name); } catch (Exception e) { + LOG.error("Cant find RemoteConnectionType with the name " + name, e); return NONE; } }