From 3f6a0e007d0e46363701a186cf25ccb4e0ae99c8 Mon Sep 17 00:00:00 2001 From: James Woglom Date: Sat, 7 Jan 2023 00:56:58 -0500 Subject: [PATCH] wider log output in --check-login --- tconnectsync/check.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tconnectsync/check.py b/tconnectsync/check.py index 575a753..647d2b1 100644 --- a/tconnectsync/check.py +++ b/tconnectsync/check.py @@ -5,7 +5,7 @@ import logging import traceback import pkg_resources from datetime import datetime -from pprint import pformat +from pprint import pformat as pformat_base from .nightscout import NightscoutApi from .parser.nightscout import BASAL_EVENTTYPE, BOLUS_EVENTTYPE @@ -232,4 +232,8 @@ def run_sanitize(s, sanitizedData): for k, v in sanitizedData.items(): if v and len(str(v)) > 0: ret = ret.replace(str(v), '[%s]' % k) - return ret \ No newline at end of file + return ret + +def pformat(*args, **kwargs): + kwargs['width'] = 160 + return pformat_base(*args, **kwargs) \ No newline at end of file