|  | @@ -71,7 +71,7 @@ public class DistributedLock {
 | 
	
		
			
				|  |  |          } catch (BizException e) {
 | 
	
		
			
				|  |  |              throw e;
 | 
	
		
			
				|  |  |          }  catch (Exception e) {
 | 
	
		
			
				|  |  | -            log.error("runIfLockCanGet error lockName : {}", lockName, e);
 | 
	
		
			
				|  |  | +            e.printStackTrace();
 | 
	
		
			
				|  |  |              throw new RuntimeException("runIfLockCanGet error lockName :" + lockName, e);
 | 
	
		
			
				|  |  |          } finally {
 | 
	
		
			
				|  |  |              unlock(lock);
 | 
	
	
		
			
				|  | @@ -116,7 +116,7 @@ public class DistributedLock {
 | 
	
		
			
				|  |  |                  throw new BizException(message);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          } catch (Exception e) {
 | 
	
		
			
				|  |  | -            log.error("callIfLockCanGet error lockKey {}", lockName);
 | 
	
		
			
				|  |  | +            e.printStackTrace();
 | 
	
		
			
				|  |  |              throw new RuntimeException("任务执行异常");
 | 
	
		
			
				|  |  |          } finally {
 | 
	
		
			
				|  |  |              executor.shutdown();
 | 
	
	
		
			
				|  | @@ -148,7 +148,7 @@ public class DistributedLock {
 | 
	
		
			
				|  |  |                  return null;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          } catch (Exception e) {
 | 
	
		
			
				|  |  | -            log.error("callIfLockCanGet error lockKey {}", lockName);
 | 
	
		
			
				|  |  | +            e.printStackTrace();
 | 
	
		
			
				|  |  |              throw new RuntimeException("任务执行异常");
 | 
	
		
			
				|  |  |          } finally {
 | 
	
		
			
				|  |  |              executor.shutdown();
 | 
	
	
		
			
				|  | @@ -171,7 +171,7 @@ public class DistributedLock {
 | 
	
		
			
				|  |  |       *
 | 
	
		
			
				|  |  |       * @param lockName lockKey
 | 
	
		
			
				|  |  |       * @param function 需要执行的方法
 | 
	
		
			
				|  |  | -     * @return Future 异步任务
 | 
	
		
			
				|  |  | +     * @return Future
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      public <T, R> R runIfLockToFunction(final String lockName, Function<T, R> function, T param, long waitTime) {
 | 
	
		
			
				|  |  |          RLock lock = redissonClient.getLock(lockName);
 | 
	
	
		
			
				|  | @@ -189,7 +189,7 @@ public class DistributedLock {
 | 
	
		
			
				|  |  |          } catch (BizException e) {
 | 
	
		
			
				|  |  |              throw e;
 | 
	
		
			
				|  |  |          } catch (Exception e) {
 | 
	
		
			
				|  |  | -            log.error("callIfLockCanGet error lockKey {}", lockName);
 | 
	
		
			
				|  |  | +            e.printStackTrace();
 | 
	
		
			
				|  |  |              throw new RuntimeException("任务执行异常");
 | 
	
		
			
				|  |  |          } finally {
 | 
	
		
			
				|  |  |              unlock(lock);
 |