cedric pushed a commit to branch master.
commit c75c5af4d39532a8ef675439770d2726760109e1
Author: Cedric Bail <[email protected]>
Date: Sat Mar 16 23:16:24 2013 +0900
elev8: add more information during startup.
---
src/bin/main.cc | 4 ++++
src/bin/server.cc | 2 ++
2 files changed, 6 insertions(+)
diff --git a/src/bin/main.cc b/src/bin/main.cc
index a980e37..d4b3ab3 100644
--- a/src/bin/main.cc
+++ b/src/bin/main.cc
@@ -398,6 +398,8 @@ flush_garbage_collector(void *, int , void *)
void
load_elev8_modules()
{
+ INF("Loading Elev8 modules");
+
global = Persistent<ObjectTemplate>::New(ObjectTemplate::New());
global->Set(String::NewSymbol("require"), FunctionTemplate::New(require));
global->Set(String::NewSymbol("__require__"),
FunctionTemplate::New(__require__));
@@ -414,6 +416,8 @@ load_elev8_modules()
load_module(String::NewSymbol("elm"), CREATE_NEW_CONTEXT);
load_module(String::NewSymbol("http"), CREATE_NEW_CONTEXT);
+
+ INF("Elev8 modules loaded");
}
void
diff --git a/src/bin/server.cc b/src/bin/server.cc
index c39a3c5..ad10948 100644
--- a/src/bin/server.cc
+++ b/src/bin/server.cc
@@ -131,6 +131,7 @@ _cb_conn_data(void *, int, Ecore_Con_Event_Client_Data *ev)
void
server_start()
{
+ INF("Starting IPC server.");
if (!(server = ecore_con_server_add((Ecore_Con_Type) ((int)
ECORE_CON_LOCAL_USER | (int) ECORE_CON_SOCKET_ACTIVATE),
ELEV8_SOCK_PATH,
ELEV8_SOCK_PORT, NULL)))
@@ -144,6 +145,7 @@ server_start()
(Ecore_Event_Handler_Cb)_cb_conn_data, NULL);
ecore_con_server_client_limit_set(server, ELEV8_LISTEN_BACKLOG, 0);
+ INF("IPC server started");
load_elev8_modules();
}
--
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d