dotfm

My dotfile manager
git clone git://src.gearsix.net/dotfm
Log | Files | Refs | Atom | README | LICENSE

commit edd6db64509003f8447051cd09cf02e7c8943886
parent de7ab1d7bb4152762a22dbf67eb0b2e22cb29fa5
Author: gearsix <gearsix@tuta.io>
Date:   Tue,  6 Apr 2021 15:57:59 +0100

tidied up logging

Diffstat:
Msrc/dotfm.py | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/dotfm.py b/src/dotfm.py @@ -337,7 +337,7 @@ def dotfm_list(dotfile_aliases): 'all' if len(dotfile_aliases) == 0 else dotfile_aliases)) if len(dotfile_aliases) == 0: - os.system('printf "Location,Aliases...\n,\n$(cat {})" | ' \ + os.system('printf "LOCATION,ALIASES...\n$(cat {})" | ' \ 'column -t -s,'.format(DOTFM_CSV_FILE)) else: dotfiles = '' @@ -349,7 +349,7 @@ def dotfm_list(dotfile_aliases): dotfiles += ',{}'.format(a) if i == len(dfl[1:]) - 1: dotfiles += '\n' - os.system('printf "Location,Aliases...\n,\n{}" | ' \ + os.system('printf "LOCATIOn,ALIASES...\n{}" | ' \ 'column -t -s,'.format(dotfiles)) #------ @@ -363,8 +363,7 @@ if __name__ == '__main__': # init LOGGER log_lvl = logging.INFO - log_fmt = '%(lineno)-4s {} | %(asctime)s | %(levelname)-7s | ' \ - '%(message)s'.format(NAME) + log_fmt = '%(levelname)-7s | %(message)s' if ARGS.debug == True: LOGGER.debug('displaying debug logs') log_lvl = logging.DEBUG