Hello Charles,
In my environment (Python 2.7), I found that variable DEBUG is recognized as str type instead of Bool type, after setting debug loaded from config file (".git\gitcc"):
|
DEBUG = cfg.getCore('debug', True) |
Then when calling function debug, regardless of the setting value, it will enter the if case and do the print action:
|
def debug(string): |
|
if DEBUG: |
|
print(string) |
Hello Charles,
In my environment (Python 2.7), I found that variable
DEBUGis recognized asstrtype instead ofBooltype, after settingdebugloaded from config file (".git\gitcc"):git-cc/git_cc/common.py
Line 228 in 9db2037
Then when calling function
debug, regardless of the setting value, it will enter theifcase and do the print action:git-cc/git_cc/common.py
Lines 72 to 74 in 9db2037