We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f8a30 commit 4b3768dCopy full SHA for 4b3768d
osia/cli.py
@@ -194,10 +194,18 @@ def main_cli():
194
It sets up the cli and starts the executor."""
195
parser = _setup_parser()
196
args = parser.parse_args()
197
+
198
+ coloredlogs.DEFAULT_FIELD_STYLES.update(filename=dict(color='blue'))
199
+ fmt: str = "%(asctime)s %(filename)12s:%(lineno)-5i %(levelname)-8s %(message)s"
200
201
if vars(args).get('verbose', False):
- coloredlogs.install(level='DEBUG')
202
+ coloredlogs.install(fmt=fmt, level=logging.DEBUG)
203
else:
- coloredlogs.install(level='INFO')
204
+ coloredlogs.install(fmt=fmt, level=logging.INFO)
205
206
logging.captureWarnings(True)
207
208
+ for package in ["urllib3", "git"]:
209
+ logging.getLogger(package).setLevel(logging.INFO)
210
211
args.func(args)
0 commit comments