Skip to content

Commit

Permalink
Merge pull request #87 from njzjz/dlog
Browse files Browse the repository at this point in the history
prevent logging from being send to the upper logger
  • Loading branch information
felix5572 committed Jul 6, 2021
2 parents 87e3ee8 + 4d31885 commit 9f66a5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dpdispatcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

ROOT_PATH=__path__[0]
dlog = logging.getLogger(__name__)
dlog.propagate = False
dlog.setLevel(logging.INFO)
dlogf = logging.FileHandler(os.getcwd()+os.sep+'dpdispatcher'+'.log')
# dlogf = logging.FileHandler('./'+os.sep+SHORT_CMD+'.log')
Expand Down

0 comments on commit 9f66a5d

Please sign in to comment.