|
@@ -365,7 +365,6 @@ class chctl
|
|
|
$state = "waking";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
return "{$name} {$state} time={$time} commit_succ={$commit_succ} notify_count={$notify_count} profit_ratio={$profit_ratio}";
|
|
|
};
|
|
|
|
|
@@ -482,14 +481,11 @@ class chctl
|
|
|
$feed_names = [];
|
|
|
foreach ($feeds as $item) {
|
|
|
$feed_names[] = $item->name();
|
|
|
- $feed_descs[] = $desctor($item);
|
|
|
}
|
|
|
|
|
|
$profit_names = [];
|
|
|
- $profit_descs = [];
|
|
|
foreach ($profits as $item) {
|
|
|
$profit_names[] = $item->name();
|
|
|
- $profit_descs[] = $desctor($item);
|
|
|
}
|
|
|
|
|
|
if ($can_feed) {
|
|
@@ -499,8 +495,9 @@ class chctl
|
|
|
}
|
|
|
|
|
|
$scan_feed = $can_feed ? 'true' : 'false';
|
|
|
- Log::record("auto_match feeds =" . implode(',',$feed_descs),Log::DEBUG);
|
|
|
- Log::record("auto_match profits =" . implode(',',$profit_descs),Log::DEBUG);
|
|
|
+ $logger($feeds,'feeds');
|
|
|
+ $logger($profits,'profits');
|
|
|
+
|
|
|
Log::record("auto_match can_feed = {$scan_feed} result =" . implode(',',$result),Log::DEBUG);
|
|
|
return $result;
|
|
|
}
|