You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/05/06 16:27:50 UTC
[sling-whiteboard] branch master updated: Debug false by default
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new 917ec3d Debug false by default
917ec3d is described below
commit 917ec3d560f83f2054a365bbc4a95f4351c0e8c3
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu May 6 18:27:38 2021 +0200
Debug false by default
---
.../apache/sling/remotecontent/samples/graphql/DocumentDataFetcher.java | 2 +-
.../sling/remotecontent/samples/graphql/DocumentsDataFetcher.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontent/samples/graphql/DocumentDataFetcher.java b/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontent/samples/graphql/DocumentDataFetcher.java
index ff432e0..1472361 100644
--- a/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontent/samples/graphql/DocumentDataFetcher.java
+++ b/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontent/samples/graphql/DocumentDataFetcher.java
@@ -49,7 +49,7 @@ public class DocumentDataFetcher implements SlingDataFetcher<Object> {
final Map<String, Object> data = new HashMap<>();
data.put("path", path);
data.put("selectors", e.getArgument("selectors"));
- final DocumentMapper.Options opt = new DocumentMapper.Options(e.getArgument("debug", true), new UrlBuilderStub());
+ final DocumentMapper.Options opt = new DocumentMapper.Options(e.getArgument("debug", false), new UrlBuilderStub());
// Get the target Resource
final Resource target = e.getCurrentResource().getResourceResolver().getResource(path);
diff --git a/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontent/samples/graphql/DocumentsDataFetcher.java b/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontent/samples/graphql/DocumentsDataFetcher.java
index 581a905..a56843f 100644
--- a/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontent/samples/graphql/DocumentsDataFetcher.java
+++ b/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontent/samples/graphql/DocumentsDataFetcher.java
@@ -69,7 +69,7 @@ public class DocumentsDataFetcher implements SlingDataFetcher<Object> {
// Use a suffix as we might not keep these built-in language in the long term
final String langSuffix = "2020";
- final DocumentMapper.Options opt = new DocumentMapper.Options(e.getArgument("debug", true), new UrlBuilderStub());
+ final DocumentMapper.Options opt = new DocumentMapper.Options(e.getArgument("debug", false), new UrlBuilderStub());
String lang = e.getArgument("lang", "xpath" + langSuffix);
if(!lang.endsWith(langSuffix)) {