Minor change, improved logging info

This commit is contained in:
andrea
2014-12-06 17:56:54 +01:00
parent 5b4a45a487
commit e6dba99aa8
2 changed files with 4 additions and 1 deletions
@@ -63,6 +63,9 @@ public class Server {
* Starts Moquette bringing the configuration from the given file
*/
public void startServer(File configFile) throws IOException {
LOG.info("Using config file: " + configFile.getAbsolutePath());
LOG.info("Persistent store file: " + STORAGE_FILE_PATH);
ConfigurationParser confParser = new ConfigurationParser();
try {
confParser.parse(configFile);
@@ -119,7 +119,7 @@ public class NettyAcceptor implements ServerAcceptor {
try {
// Bind and start to accept incoming connections.
ChannelFuture f = b.bind(host, port);
LOG.info("Server binded");
LOG.info("Server binded host: {}, port: {}", host, port);
f.sync();
} catch (InterruptedException ex) {
LOG.error(null, ex);