File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
from .models .configuration import Configuration , Settings # noqa F401
3
3
from .connector import Connector # noqa F401
4
4
5
- __version__ = '0.9.3 '
5
+ __version__ = '0.9.4 '
Original file line number Diff line number Diff line change 8
8
import inspect
9
9
import json
10
10
import logging
11
+ import os
11
12
import tomllib
12
13
from enum import Enum
13
14
from pathlib import Path
@@ -63,7 +64,7 @@ def __init__(
63
64
credentials : list [type [Credential ]] | None = None ,
64
65
):
65
66
self .app = Typer (add_completion = False )
66
- self .console = Console ()
67
+ self .console = Console (width = 135 )
67
68
self .settings = settings
68
69
self .defaults = (
69
70
defaults if defaults else settings .model_construct ().model_dump ()
@@ -224,16 +225,22 @@ def cmd_run(
224
225
console = self .console ,
225
226
rich_tracebacks = True ,
226
227
omit_repeated_times = False ,
228
+ tracebacks_show_locals = True if log_level == 'DEBUG' else False ,
227
229
)
228
230
],
229
231
)
230
232
status_code = 0
231
233
resp = None
232
234
235
+ for k , v in os .environ .items ():
236
+ logger .debug (f'Environment variable { k } ={ v } ' )
233
237
# Attempt to run the connector job and handle any errors that may be thrown
234
238
# in a graceful way.
235
239
try :
236
240
config = self .fetch_config (json_data , filename )
241
+ logger .debug (
242
+ 'Running job with configuration {config.model_dump(mode="json")}'
243
+ )
237
244
resp = self .main (config = config , since = since )
238
245
except (ValidationError , ConfigurationError ) as _ :
239
246
logging .error ('Invalid configuration presented' , exc_info = True )
You can’t perform that action at this time.
0 commit comments