-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Motivation**: When parsing multiple files, the package produces quite some logging. These entries are not telling much and create overhead. **Changes**: Remove two logging entries - which are more helpful for debugging (in my view). Besides, I propose to formulate the source of another one more explicitly.
- Loading branch information
1 parent
6fdf204
commit 566c9b5
Showing
5 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import logging | ||
|
||
from pytsql import executes | ||
|
||
|
||
def test_deactivation_of_logger(engine, caplog): | ||
logger = logging.getLogger("pytsql") | ||
logger.disabled = True | ||
logger.setLevel(logging.DEBUG) | ||
|
||
seed = "PRINT 'test'" | ||
executes(seed, engine) | ||
|
||
assert len(caplog.records) == 0 | ||
|
||
logger.disabled = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters