fixed bug in log file path
This commit is contained in:
parent
04c4220663
commit
61b18c06f4
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ Add `Bundle 'wakatime/vim-wakatime'` to your `~/.vimrc`
|
||||||
|
|
||||||
3) Run these shell commands:
|
3) Run these shell commands:
|
||||||
|
|
||||||
touch ~/.wakatime.log; chmod u+w !$
|
touch ~/.wakatime.log
|
||||||
echo "api_key=MY_API_KEY" > ~/.wakatime
|
echo "api_key=MY_API_KEY" > ~/.wakatime
|
||||||
vim +BundleInstall +qall
|
vim +BundleInstall +qall
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,7 @@ def main(argv):
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
level = log.DEBUG
|
level = log.DEBUG
|
||||||
del args.verbose
|
del args.verbose
|
||||||
log.basicConfig(filename='~/.wakatime.log', format='%(asctime)s vim-wakatime/'+version+' %(levelname)s %(message)s', datefmt='%Y-%m-%dT%H:%M:%SZ', level=level)
|
log.basicConfig(filename=os.path.expanduser('~/.wakatime.log'), format='%(asctime)s vim-wakatime/'+version+' %(levelname)s %(message)s', datefmt='%Y-%m-%dT%H:%M:%SZ', level=level)
|
||||||
tags = tags_from_path(args.task)
|
tags = tags_from_path(args.task)
|
||||||
project = project_from_path(args.task)
|
project = project_from_path(args.task)
|
||||||
send_action(project=project, tags=tags, **vars(args))
|
send_action(project=project, tags=tags, **vars(args))
|
||||||
|
|
Loading…
Reference in a new issue