-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ibm-api-symmetry): print info logs in coherent order
The code to determine if one schema is a graph fragment of the other uses a depth-first algorithm that prints a log, if it determines the schema to violate the graph fragment pattern, with the reason behind the violation. Due to the depth-first nature of the algorithm, the logs are currently printed in depth first order, which is not as coherent for the user to read. This change introduces a stack to collect the logs during processing and print them in reverse order afterwards, to give the user a better sense of what happened during the processing. Signed-off-by: Dustin Popp <dpopp07@gmail.com>
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters