bugfix: logger service id is an uint32_t

This commit is contained in:
云风
2014-02-25 18:51:48 +08:00
parent 918433bd58
commit 486da653e4

View File

@@ -12,11 +12,11 @@
void
skynet_error(struct skynet_context * context, const char *msg, ...) {
static int logger = -1;
if (logger < 0) {
static uint32_t logger = 0;
if (logger == 0) {
logger = skynet_handle_findname("logger");
}
if (logger < 0) {
if (logger == 0) {
return;
}