12
12
import logging
13
13
import os
14
14
import os .path
15
- import sys
16
15
from collections import deque
17
16
from contextlib import contextmanager
18
17
from dataclasses import dataclass
@@ -266,14 +265,11 @@ def dbt_config(self):
266
265
267
266
# Attempt to silence internal logging at this point.
268
267
# https://github.com/sqlfluff/sqlfluff/issues/5054
269
- print ("dbt config" )
270
268
# self.try_silence_dbt_logs()
271
269
272
270
user_config = None
273
271
cli_vars = self ._get_cli_vars ()
274
272
275
- print ("set user config and cli vars" )
276
-
277
273
flags .set_from_args (
278
274
DbtConfigArgs (
279
275
project_dir = self .project_dir ,
@@ -285,7 +281,6 @@ def dbt_config(self):
285
281
),
286
282
user_config ,
287
283
)
288
- print ("flags set" )
289
284
_dbt_config = DbtRuntimeConfig .from_args (
290
285
DbtConfigArgs (
291
286
project_dir = self .project_dir ,
@@ -297,10 +292,8 @@ def dbt_config(self):
297
292
threads = 1 ,
298
293
)
299
294
)
300
- print ("dbt config set" )
301
295
302
296
register_adapter (_dbt_config , get_mp_context ())
303
- print ("return dbt config" )
304
297
return _dbt_config
305
298
306
299
@cached_property
@@ -328,8 +321,6 @@ def dbt_manifest(self):
328
321
# dbt 0.20.* and onward
329
322
from dbt .parser .manifest import ManifestLoader
330
323
331
- print (self .dbt_config )
332
-
333
324
return ManifestLoader .get_full_manifest (self .dbt_config )
334
325
335
326
@cached_property
@@ -447,10 +438,6 @@ def sequence_files(
447
438
if not self .profiles_dir :
448
439
self .profiles_dir = self ._get_profiles_dir ()
449
440
450
- print ("project_dir" , self .project_dir )
451
- print ("" )
452
- print (self )
453
-
454
441
outs = []
455
442
456
443
# Populate full paths for selected files
@@ -861,15 +848,12 @@ def process_from_rust(
861
848
config_string : str ,
862
849
live_context : Dict [str , Any ],
863
850
) -> TemplatedFile :
864
- print ("sys.path:" , sys .path )
865
- print ("Current working directory:" , os .getcwd ())
866
851
"""Process the call from the rust side."""
867
852
config = fluff_config_from_json (config_string )
868
853
templater = DbtTemplater (override_context = live_context , sqlfluff_config = config )
869
854
try :
870
855
fnames = templater .sequence_files ([fname ], config = config )
871
856
fname = fnames [0 ]
872
- print (fname )
873
857
(output , errors ) = templater .process (
874
858
in_str = string ,
875
859
fname = fname ,
@@ -878,6 +862,7 @@ def process_from_rust(
878
862
)
879
863
except Exception as e :
880
864
print ("Error: " , e )
865
+ print ("Error Stack:" , e .__traceback__ )
881
866
raise e
882
867
if errors != []:
883
868
raise ValueError
0 commit comments