mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
add config.logservice for user defined log service
This commit is contained in:
@@ -223,9 +223,9 @@ skynet_start(struct skynet_config * config) {
|
||||
skynet_timer_init();
|
||||
skynet_socket_init();
|
||||
|
||||
struct skynet_context *ctx = skynet_context_new("logger", config->logger);
|
||||
struct skynet_context *ctx = skynet_context_new(config->logservice, config->logger);
|
||||
if (ctx == NULL) {
|
||||
fprintf(stderr, "Can't launch logger service\n");
|
||||
fprintf(stderr, "Can't launch %s service\n", config->logservice);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user