删除观测用日志记录

This commit is contained in:
数据小王子 2024-03-06 09:01:26 +08:00
parent fa75c7155a
commit 0974e65c0a

View File

@ -2,7 +2,6 @@ package com.ruoyi.common.security.core.dao;
import cn.dev33.satoken.dao.SaTokenDao; import cn.dev33.satoken.dao.SaTokenDao;
import cn.dev33.satoken.util.SaFoxUtil; import cn.dev33.satoken.util.SaFoxUtil;
import cn.hutool.core.lang.Console;
import com.github.benmanes.caffeine.cache.Cache; import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine; import com.github.benmanes.caffeine.cache.Caffeine;
import com.ruoyi.common.redis.utils.RedisUtils; import com.ruoyi.common.redis.utils.RedisUtils;
@ -35,7 +34,6 @@ public class FlexSaTokenDao implements SaTokenDao {
@Override @Override
public String get(String key) { public String get(String key) {
Object o = CAFFEINE.get(key, k -> RedisUtils.getCacheObject(key)); Object o = CAFFEINE.get(key, k -> RedisUtils.getCacheObject(key));
Console.log("caffeine -> key:" + key + ",value:" + o);
return (String) o; return (String) o;
} }
@ -99,7 +97,6 @@ public class FlexSaTokenDao implements SaTokenDao {
@Override @Override
public Object getObject(String key) { public Object getObject(String key) {
Object o = CAFFEINE.get(key, k -> RedisUtils.getCacheObject(key)); Object o = CAFFEINE.get(key, k -> RedisUtils.getCacheObject(key));
Console.log("caffeine -> key:" + key + ",value:" + o);
return o; return o;
} }