Skip to content

Commit

Permalink
Add debug message to print state of the debug environment variable fo…
Browse files Browse the repository at this point in the history
…r encoding spaces.
  • Loading branch information
kaladay committed Oct 11, 2024
1 parent 6b725fb commit 557b336
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/edu/tamu/iiif/utility/StringUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public static String decode(String value) {

public static String encodeSpaces(String value) {
String disableEncode = System.getenv("DEBUG_DISABLE_SPACE_ENCODE");
System.out.println("\n\n\nDEBUG: DEBUG_DISABLE_SPACE_ENCODE: " + disableEncode + "\n\n\n");
if (disableEncode == "true") {
System.out.print("\n\n\nDEBUG: not replacing spaces, from '" + value + "'\n\n\n");
return value;
Expand Down

0 comments on commit 557b336

Please sign in to comment.