Merge pull request #855 from AndreMiras/feature/change_default_log_level_to_2

Changes default log level to debug (2)
This commit is contained in:
Mathieu Virbel 2019-03-12 22:56:20 +01:00 committed by GitHub
commit 1edbb7e0e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -112,7 +112,7 @@ class Buildozer(object):
def __init__(self, filename='buildozer.spec', target=None):
super(Buildozer, self).__init__()
self.log_level = 1
self.log_level = 2
self.environ = {}
self.specfilename = filename
self.state = None
@ -139,7 +139,7 @@ class Buildozer(object):
try:
self.log_level = int(self.config.getdefault(
'buildozer', 'log_level', '1'))
'buildozer', 'log_level', '2'))
except Exception:
pass

View file

@ -248,7 +248,7 @@ ios.ios_deploy_branch = 1.7.0
[buildozer]
# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 1
log_level = 2
# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1

View file

@ -86,11 +86,11 @@ class TestBuildozer(unittest.TestCase):
"""
# the default log level value is known
buildozer = Buildozer('does_not_exist.spec')
assert buildozer.log_level == 1
# sets log level to 2 on the spec file
self.set_specfile_log_level(self.specfile.name, 2)
buildozer = Buildozer(self.specfile.name)
assert buildozer.log_level == 2
# sets log level to 1 on the spec file
self.set_specfile_log_level(self.specfile.name, 1)
buildozer = Buildozer(self.specfile.name)
assert buildozer.log_level == 1
def test_log_print(self):
"""