Log warning when a command can not be processed.
[Sone.git] / src / main / java / net / pterodactylus / sone / fcp / FcpInterface.java
index 8959b6a..65d0d87 100644 (file)
@@ -84,6 +84,7 @@ public class FcpInterface {
                commands.put("Version", new VersionCommand(core));
                commands.put("GetLocalSones", new GetLocalSonesCommand(core));
                commands.put("GetSones", new GetSonesCommand(core));
+               commands.put("GetSone", new GetSoneCommand(core));
                commands.put("GetPost", new GetPostCommand(core));
                commands.put("GetPosts", new GetPostsCommand(core));
                commands.put("GetPostFeed", new GetPostFeedCommand(core));
@@ -172,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) {