Minor change, improved logging info
This commit is contained in:
@@ -63,6 +63,9 @@ public class Server {
|
|||||||
* Starts Moquette bringing the configuration from the given file
|
* Starts Moquette bringing the configuration from the given file
|
||||||
*/
|
*/
|
||||||
public void startServer(File configFile) throws IOException {
|
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();
|
ConfigurationParser confParser = new ConfigurationParser();
|
||||||
try {
|
try {
|
||||||
confParser.parse(configFile);
|
confParser.parse(configFile);
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ public class NettyAcceptor implements ServerAcceptor {
|
|||||||
try {
|
try {
|
||||||
// Bind and start to accept incoming connections.
|
// Bind and start to accept incoming connections.
|
||||||
ChannelFuture f = b.bind(host, port);
|
ChannelFuture f = b.bind(host, port);
|
||||||
LOG.info("Server binded");
|
LOG.info("Server binded host: {}, port: {}", host, port);
|
||||||
f.sync();
|
f.sync();
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
LOG.error(null, ex);
|
LOG.error(null, ex);
|
||||||
|
|||||||
Reference in New Issue
Block a user