[AB-285] fixing interval of warn decay job

removing has example config from unban
enabling to change the configuration for cron scheduler job
adding HTTP method to okhttp logger
fixing unmute job parameters
changing to use cache when retrieving reactions for a message to cache it
This commit is contained in:
Sheldan
2021-06-02 12:27:10 +02:00
parent 432dc0ffae
commit 82281cbd6c
11 changed files with 69 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ public class OkHttpLogger implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request request = chain.request();
log.debug("Executing request towards towards {}.", request.url().toString());
log.debug("Executing request of method {} towards towards {}.", request.method(), request.url().toString());
Response response = chain.proceed(request);
long startTime = response.sentRequestAtMillis();
long endTime = response.receivedResponseAtMillis();

View File

@@ -165,7 +165,7 @@ public class CacheEntityServiceBean implements CacheEntityService {
@Override
public CompletableFuture<CachedReactions> getCachedReactionFromReaction(MessageReaction reaction) {
CompletableFuture<CachedReactions> future = new CompletableFuture<>();
ReactionPaginationAction users = reaction.retrieveUsers().cache(false);
ReactionPaginationAction users = reaction.retrieveUsers();
CachedReactions.CachedReactionsBuilder builder = CachedReactions.builder();
List<ServerUser> aUsers = new ArrayList<>();