mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: logger service id is an uint32_t
This commit is contained in:
@@ -12,11 +12,11 @@
|
|||||||
|
|
||||||
void
|
void
|
||||||
skynet_error(struct skynet_context * context, const char *msg, ...) {
|
skynet_error(struct skynet_context * context, const char *msg, ...) {
|
||||||
static int logger = -1;
|
static uint32_t logger = 0;
|
||||||
if (logger < 0) {
|
if (logger == 0) {
|
||||||
logger = skynet_handle_findname("logger");
|
logger = skynet_handle_findname("logger");
|
||||||
}
|
}
|
||||||
if (logger < 0) {
|
if (logger == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user