Skip to content

Commit

Permalink
fixup! [feature] A new and improved 'exist:time' XQuery pragma. Backp…
Browse files Browse the repository at this point in the history
…orted from FusionDB
  • Loading branch information
adamretter committed Oct 5, 2023
1 parent e23d504 commit 26ef01f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
* }</pre>
*
* The following optional configuration options may be given to the Time Pragma via the pragma's contents:
* * verbose - Set to 'yes' if you want the associated expression to be logged to.
* * verbose - Set to 'true' if you want the associated expression to be logged to. You may also use 'yes' instead of 'true' but its use is deprecated and may be removed in the future.
* * logger-name - The name of the logger to use, if omitted the logger for {@link TimePragma} will be used.
* * logging-level - The Slf4j level at which the timing should be logged, e.g. Trace, Debug, Info, Warn, Error, etc. If omitted this defaults to 'Trace' level.
* * log-message-prefix - An optional prefix to append to the start of the log message to help you identify it.
Expand Down Expand Up @@ -339,7 +339,7 @@ private static Options parseOptions(@Nullable final String contents) throws XPat

switch (param[0]) {
case "verbose":
verbose = "yes".equals(param[1]);
verbose = "true".equals(param[1]) || "yes".equals(param[1]);
break;

case "logger-name":
Expand Down

0 comments on commit 26ef01f

Please sign in to comment.