Skip to content

Commit

Permalink
Merge pull request #91 from Feiyang472/patch-1
Browse files Browse the repository at this point in the history
correct extra "logging" typo
  • Loading branch information
felix5572 committed Jul 6, 2021
2 parents 248313f + 2d75fa8 commit bb57c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdispatcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
dlogf = logging.FileHandler(os.getcwd()+os.sep+'dpdispatcher'+'.log')
except PermissionError:
warnings.warn(f"dpdispatcher.log meet permission error. redirect the log to ~/dpdispatcher.log")
dlogf = logging.logging.FileHandler(os.path.join(os.path.expanduser('~'),'dpdispatcher.log'))
dlogf = logging.FileHandler(os.path.join(os.path.expanduser('~'),'dpdispatcher.log'))

# dlogf = logging.FileHandler('./'+os.sep+SHORT_CMD+'.log')
# dlogf = logging.FileHandler(os.path.join(os.environ['HOME'], SHORT_CMD+'.log'))
Expand Down

0 comments on commit bb57c2a

Please sign in to comment.