从tldextract导入提取模块时,在控制台上出现以下日志错误。如何在python中处理此类日志并避免在控制台上可见。
找不到记录器“ tldextract”的处理程序
from tldextract import extract
url = "https://sub.example.com/hello.html"
tsd, td, ts = extract(url)
print(td)
答案 0 :(得分:0)
添加此内容:
public function index(){
$calllog = DB::table("calllogs")->join("users", "users.id", "=", "calllogs.user_id")->get();
if($calllog[0]->expiry_date > 'expiry_date'){
return $this->sendResponse($calllog->toArray(), 'Package Expired Sorry!');
}
else{
return $this->sendResponse($calllog->toArray(), 'Call Log retrieved successfully');
}
}