Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8e3fff

Browse files
committed
Replaced dbms_output with debug_log
1 parent f539bf9 commit a8e3fff

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

source/core/ut_suite_manager.pkb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,32 +223,32 @@ create or replace package body ut_suite_manager is
223223
--were iterating in reverse order of the index by path table
224224
-- so the first paths will be the leafs of hierarchy and next will their parents
225225
l_suite_path := l_suites_by_path.last;
226-
dbms_output.put_line('Input suites to process = '||l_suites_by_path.count||', owner = '||a_owner_name);
226+
ut_utils.debug_log('Input suites to process = '||l_suites_by_path.count||', owner = '||a_owner_name);
227227

228228
while l_suite_path is not null loop
229229
l_parent_path := substr( l_suite_path, 1, instr(l_suite_path,'.',-1)-1);
230-
dbms_output.put_line('Processing l_suite_path = "'||l_suite_path||'", l_parent_path = "'||l_parent_path||'"');
230+
ut_utils.debug_log('Processing l_suite_path = "'||l_suite_path||'", l_parent_path = "'||l_parent_path||'"');
231231
--no parent => I'm a root element
232232
if l_parent_path is null then
233-
dbms_output.put_line(' suite "'||l_suite_path||'" is a root element - adding to return list.');
233+
ut_utils.debug_log(' suite "'||l_suite_path||'" is a root element - adding to return list.');
234234
l_result(l_suite_path) := l_suites_by_path(l_suite_path);
235235
-- not a root suite - need to add it to a parent suite
236236
else
237237
--parent does not exist and needs to be added
238238
if not l_suites_by_path.exists(l_parent_path) then
239239
l_name := substr( l_parent_path, instr(l_parent_path,'.',-1)+1);
240-
dbms_output.put_line(' Parent suite "'||l_parent_path||'" not found in the list - Adding suite "'||l_name||'"');
240+
ut_utils.debug_log(' Parent suite "'||l_parent_path||'" not found in the list - Adding suite "'||l_name||'"');
241241
l_suites_by_path(l_parent_path) :=
242242
ut_logical_suite(a_object_owner => a_owner_name, a_object_name => l_name, a_name => l_name, a_path => l_parent_path );
243243
else
244-
dbms_output.put_line(' Parent suite "'||l_parent_path||'" found in list of suites');
244+
ut_utils.debug_log(' Parent suite "'||l_parent_path||'" found in list of suites');
245245
end if;
246-
dbms_output.put_line(' adding suite "'||l_suite_path||'" to "'||l_parent_path||'" items');
246+
ut_utils.debug_log(' adding suite "'||l_suite_path||'" to "'||l_parent_path||'" items');
247247
l_suites_by_path(l_parent_path).add_item( l_suites_by_path(l_suite_path) );
248248
end if;
249249
l_suite_path := l_suites_by_path.prior(l_suite_path);
250250
end loop;
251-
dbms_output.put_line(l_result.count||' root suites created.');
251+
ut_utils.debug_log(l_result.count||' root suites created.');
252252
return l_result;
253253
end;
254254

0 commit comments

Comments
 (0)