From 34a50a214d561e9d659bd2eab45e4cf1fea50093 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 16 Apr 2021 01:33:53 +0800 Subject: [PATCH] modify --- System/Crontab/Zookeeper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/System/Crontab/Zookeeper.php b/System/Crontab/Zookeeper.php index fe5804d1..3837e7d2 100644 --- a/System/Crontab/Zookeeper.php +++ b/System/Crontab/Zookeeper.php @@ -76,7 +76,9 @@ class Zookeeper extends Process { $redis = Snowflake::app()->getRedis(); if (!$redis->exists(Producer::CRONTAB_KEY)) { - logger()->addError('queue cache not found.'); + var_dump('queue cache not found.'); + } else { + var_dump('queue cache found.'); } $range = $redis->zRangeByScore(Producer::CRONTAB_KEY, '0', (string)time());