Skip to content

Commit af6af66

Browse files
author
Prasanna Santhanam
committed
printing verbose stacktraces
1 parent 24454ac commit af6af66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kubeshell/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__version__ = '0.0.20'
2-
from . import logger
2+
from . import logger

kubeshell/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def get_resource(self, resource, namespace="all"):
3434
ret, namespaced_resource = self._call_api_client(resource)
3535
except ApiException as ae:
3636
self.logger.warning("resource autocomplete disabled, encountered "
37-
"ApiException %d: %s", ae.status, ae.reason)
37+
"ApiException", exc_info=1)
3838
except (NewConnectionError, MaxRetryError, ConnectTimeoutError):
39-
self.logger.warning("unable to connect to k8 cluster")
39+
self.logger.warning("unable to connect to k8 cluster", exc_info=1)
4040
if ret:
4141
for i in ret.items:
4242
if namespace == "all" or not namespaced_resource:

0 commit comments

Comments
 (0)