|
46 | 46 | import java.util.concurrent.LinkedBlockingQueue; |
47 | 47 | import java.util.concurrent.ThreadPoolExecutor; |
48 | 48 | import java.util.concurrent.TimeUnit; |
| 49 | +import java.util.function.Supplier; |
49 | 50 | import java.util.regex.Matcher; |
50 | 51 | import java.util.regex.Pattern; |
51 | 52 | import java.util.stream.Collectors; |
@@ -626,7 +627,7 @@ public String handleRequest(final Map params, final String responseType, final S |
626 | 627 | for (final Object key : params.keySet()) { |
627 | 628 | final String keyStr = (String)key; |
628 | 629 | final String[] value = (String[])params.get(key); |
629 | | - logger.trace(" key: {}, value: {}", keyStr, (value == null) ? "'null'" : value[0]); |
| 630 | + logger.trace(" key: {}, value: {}", keyStr, (Supplier<String>) () -> ((value == null) ? "'null'" : value[0])); |
630 | 631 | } |
631 | 632 | } |
632 | 633 | throw new ServerApiException(ApiErrorCode.UNSUPPORTED_ACTION_ERROR, "Invalid request, no command sent"); |
@@ -1011,7 +1012,7 @@ public boolean verifyRequest(final Map<String, Object[]> requestParameters, fina |
1011 | 1012 |
|
1012 | 1013 | // if api/secret key are passed to the parameters |
1013 | 1014 | if ((signature == null) || (apiKey == null)) { |
1014 | | - logger.debug("Expired session, missing signature, or missing apiKey -- ignoring request. Signature: {}, apiKey: {}", signature, apiKey); |
| 1015 | + logger.warn("Expired session, missing signature, or missing apiKey -- ignoring request. Signature: {}, apiKey: {}", signature, apiKey); |
1015 | 1016 | return false; // no signature, bad request |
1016 | 1017 | } |
1017 | 1018 |
|
|
0 commit comments