From 8251620eb6fb0c45568b16a750949aacf8d98e30 Mon Sep 17 00:00:00 2001 From: Andrew Kwon Date: Thu, 29 Apr 2021 22:58:37 -0700 Subject: [PATCH] Add runtime path log --- lua/presence/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/presence/init.lua b/lua/presence/init.lua index 6f46d97..68050ec 100644 --- a/lua/presence/init.lua +++ b/lua/presence/init.lua @@ -95,7 +95,7 @@ function Presence:setup(options) self:set_option("debounce_timeout", 15) local discord_socket = self:get_discord_socket() - if not discord_socket then + if discord_socket then self.log:error("Failed to get Discord IPC socket") end @@ -278,6 +278,7 @@ function Presence:get_discord_socket() local var = env_vars[i] local path = vim.loop.os_getenv(var) if path then + self.log:debug(string.format("Using runtime path: %s", path)) return path:match("/$") and path..sock_name or path.."/"..sock_name end end