mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
pySim-shell: use log level INFO by default
The default log level of the PySimLogger is DEBUG by default. This is to ensure that all messages are printed in an unconfigured setup. However in pySim-Shell we care about configuring the logger, so let's set the debug log level to INFO in startup. This will allow us to turn debug messages on and off using the verbose switch. Change-Id: I89315f830ce1cc2d573887de4f4cf4e19d17543b Related: SYS#7725
This commit is contained in:
@@ -229,7 +229,7 @@ Online manual available at https://downloads.osmocom.org/docs/pysim/master/html/
|
||||
if new == True:
|
||||
PySimLogger.set_level(logging.DEBUG)
|
||||
else:
|
||||
PySimLogger.set_level()
|
||||
PySimLogger.set_level(logging.INFO)
|
||||
|
||||
class Cmd2ApduTracer(ApduTracer):
|
||||
def __init__(self, cmd2_app):
|
||||
@@ -1144,6 +1144,9 @@ if __name__ == '__main__':
|
||||
if (opts.verbose):
|
||||
PySimLogger.set_verbose(True)
|
||||
PySimLogger.set_level(logging.DEBUG)
|
||||
else:
|
||||
PySimLogger.set_verbose(False)
|
||||
PySimLogger.set_level(logging.INFO)
|
||||
|
||||
# Register csv-file as card data provider, either from specified CSV
|
||||
# or from CSV file in home directory
|
||||
|
||||
Reference in New Issue
Block a user