From: David ‘Bombe’ Roden Date: Wed, 11 May 2011 05:13:53 +0000 (+0200) Subject: Log warning when a command can not be processed. X-Git-Tag: 0.6.5^2~33 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ccf2a279d0c8261508968c9fb38dfec9c1c8bcc1;p=Sone.git Log warning when a command can not be processed. --- diff --git a/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java b/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java index 94391e7..65d0d87 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java +++ b/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java @@ -173,6 +173,7 @@ public class FcpInterface { Response response = command.execute(parameters, data, AccessType.values()[accessType]); sendReply(pluginReplySender, identifier, response); } catch (FcpException fe1) { + logger.log(Level.WARNING, "Could not process FCP command “%s”.", command); sendReply(pluginReplySender, identifier, new ErrorResponse("Error executing command: " + fe1.getMessage())); } } catch (PluginNotFoundException pnfe1) {