From 26ef01f8d3a6886139e91f5c85c918dad4004d9a Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Thu, 5 Oct 2023 07:14:06 +0100 Subject: [PATCH] fixup! [feature] A new and improved 'exist:time' XQuery pragma. Backported from FusionDB --- .../src/main/java/org/exist/xquery/pragmas/TimePragma.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exist-core/src/main/java/org/exist/xquery/pragmas/TimePragma.java b/exist-core/src/main/java/org/exist/xquery/pragmas/TimePragma.java index 90452a3d333..5a9d29a8ee2 100644 --- a/exist-core/src/main/java/org/exist/xquery/pragmas/TimePragma.java +++ b/exist-core/src/main/java/org/exist/xquery/pragmas/TimePragma.java @@ -58,7 +58,7 @@ * } * * 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. @@ -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":