This commit is contained in:
2021-05-08 16:28:50 +08:00
parent c43ce9270c
commit 0592f2b50f
4 changed files with 48 additions and 12 deletions
+2 -2
View File
@@ -173,8 +173,8 @@ class Kafka extends \Snowflake\Process\Process
$conf->set('metadata.broker.list', $kafka['brokers']);
$conf->set('socket.timeout.ms', '30000');
logger()->debug('kafka listen groupId ' . $kafka['groupId']);
logger()->debug('kafka listen brokers ' . $kafka['brokers']);
debug('kafka listen groupId ' . $kafka['groupId']);
debug('kafka listen brokers ' . $kafka['brokers']);
if (function_exists('pcntl_sigprocmask')) {
pcntl_sigprocmask(SIG_BLOCK, array(SIGIO));
+3 -7
View File
@@ -30,7 +30,6 @@ class Logger implements LoggerInterface
/**
* @param string $message
* @param array $context
* @throws ComponentException
* @throws Exception
*/
public function alert(mixed $message, array $context = array())
@@ -48,7 +47,6 @@ class Logger implements LoggerInterface
/**
* @param string $message
* @param array $context
* @throws ComponentException
* @throws Exception
*/
public function error(mixed $message, array $context = array())
@@ -60,7 +58,7 @@ class Logger implements LoggerInterface
/**
* @param string $message
* @param array $context
* @throws ComponentException
* @throws Exception
*/
public function warning(mixed $message, array $context = array())
{
@@ -71,7 +69,7 @@ class Logger implements LoggerInterface
/**
* @param string $message
* @param array $context
* @throws ComponentException
* @throws Exception
*/
public function notice(mixed $message, array $context = array())
{
@@ -82,7 +80,7 @@ class Logger implements LoggerInterface
/**
* @param string $message
* @param array $context
* @throws ComponentException
* @throws Exception
*/
public function info(mixed $message, array $context = array())
{
@@ -94,7 +92,6 @@ class Logger implements LoggerInterface
/**
* @param string $message
* @param array $context
* @throws ComponentException
* @throws Exception
*/
public function debug(mixed $message, array $context = array())
@@ -107,7 +104,6 @@ class Logger implements LoggerInterface
* @param $level
* @param $message
* @param array $context
* @throws ComponentException
* @throws Exception
*/
public function log($level, mixed $message, array $context = array())