Skip to content

Commit 31e13c2

Browse files
committed
fix(repo): 成功不记录日志
1 parent b0cb285 commit 31e13c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

laravel/app/Http/Repository/BusRepository.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,10 @@ public function cronTaskTable()
295295
if (!$rs) {
296296
// 任务失败的记录日志中
297297
Log::error('CronTasks 执行失败: 线路名称 '.$post['LineInfo'], $cron);
298-
} else {
299-
Log::info('CronTasks 执行成功: 线路名称 '.$post['LineInfo']);
300298
}
299+
// else {
300+
// Log::info('CronTasks 执行成功: 线路名称 '.$post['LineInfo']);
301+
// }
301302
} else {
302303
Log::error('CronTasks 获取 bus 数据失败: 线路名称 '.$post['LineInfo'], $post);
303304
}

0 commit comments

Comments
 (0)