mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
log: Always enable; remove DISABLE_LOG
- Establish ERROR log level as "critical". Such errors are rare and will be valuable when users encounter unusual circumstances. - Set -DMIN_LOG_LEVEL=3 for release-type builds
This commit is contained in:
@@ -125,7 +125,7 @@ bool server_owns_pipe_address(const char *path)
|
||||
int server_start(const char *endpoint)
|
||||
{
|
||||
if (endpoint == NULL || endpoint[0] == '\0') {
|
||||
ELOG("Empty or NULL endpoint");
|
||||
WLOG("Empty or NULL endpoint");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ int server_start(const char *endpoint)
|
||||
|
||||
result = socket_watcher_start(watcher, MAX_CONNECTIONS, connection_cb);
|
||||
if (result < 0) {
|
||||
ELOG("Failed to start server: %s", uv_strerror(result));
|
||||
WLOG("Failed to start server: %s", uv_strerror(result));
|
||||
socket_watcher_close(watcher, free_server);
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user