mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 11:03:12 +00:00
bugfix: logger service id is an uint32_t
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user