Log warning when a command can not be processed.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 11 May 2011 05:13:53 +0000 (07:13 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 11 May 2011 05:13:53 +0000 (07:13 +0200)
src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java

index 94391e7..65d0d87 100644 (file)
@@ -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) {