提交 fcfb71b8 编写于 作者: W william.liangf

修改Main

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@460 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 9f5fbef1
......@@ -32,7 +32,7 @@ public class Main {
private static final Logger logger = LoggerFactory.getLogger(Main.class);
public static void main(String[] args) throws Throwable {
public static void main(String[] args) {
try {
ExtensionLoader<Container> loader = ExtensionLoader.getExtensionLoader(Container.class);
final Container[] containers;
......@@ -64,10 +64,10 @@ public class Main {
logger.info("Dubbo " + container.getClass().getSimpleName() + " started!");
}
System.out.println(new SimpleDateFormat("[yyyy-MM-dd HH:mm:ss]").format(new Date()) + " Dubbo service server started!");
} catch (Throwable t) {
t.printStackTrace();
logger.error(t.getMessage(), t);
throw t;
} catch (RuntimeException e) {
e.printStackTrace();
logger.error(e.getMessage(), e);
throw e;
}
synchronized (Main.class) {
for (;;) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册