From 1c4e847fd57ceb429f6cc7900f60bf84a1850f1b Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 24 Apr 2023 23:36:18 +0800 Subject: [PATCH] fix(log): enable debug mode by default --- autoload/SpaceVim/logger.vim | 3 +-- lua/spacevim/logger.lua | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/autoload/SpaceVim/logger.vim b/autoload/SpaceVim/logger.vim index f934cf500..17fca08d0 100644 --- a/autoload/SpaceVim/logger.vim +++ b/autoload/SpaceVim/logger.vim @@ -206,8 +206,7 @@ else let s:derive = {} let s:derive.origin_name = s:LOGGER.get_name() - " let s:derive._debug_mode = v:false - let s:derive._debug_mode = 0 + let s:derive._debug_mode = 1 function! s:derive.info(msg) abort call s:LOGGER.set_name(self.derive_name) diff --git a/lua/spacevim/logger.lua b/lua/spacevim/logger.lua index 699dd6da2..cd5ca902e 100644 --- a/lua/spacevim/logger.lua +++ b/lua/spacevim/logger.lua @@ -106,7 +106,7 @@ end function M.derive(name) local derive = { origin_name = logger.get_name(), - _debug_mode = false, + _debug_mode = true, derive_name = fn.printf('%' .. fn.strdisplaywidth(logger.get_name()) .. 'S', name), }