Minor logging message updates, no functional changes
This commit is contained in:
parent
d0c02b91c0
commit
ac8e79ab99
@ -12,6 +12,8 @@ use App\Classes\LDAP\Server;
|
|||||||
|
|
||||||
class AjaxController extends Controller
|
class AjaxController extends Controller
|
||||||
{
|
{
|
||||||
|
private const LOGKEY = 'CAc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the LDAP server BASE DNs
|
* Get the LDAP server BASE DNs
|
||||||
*
|
*
|
||||||
@ -42,7 +44,7 @@ class AjaxController extends Controller
|
|||||||
if (str_starts_with($dn,'*') && ($x=strpos($dn,'|')))
|
if (str_starts_with($dn,'*') && ($x=strpos($dn,'|')))
|
||||||
$dn = substr($dn,$x+1);
|
$dn = substr($dn,$x+1);
|
||||||
|
|
||||||
Log::debug(sprintf('%s: Query [%s]',__METHOD__,$dn));
|
Log::debug(sprintf('%s:Query [%s]',self::LOGKEY,$dn));
|
||||||
|
|
||||||
return (config('server'))
|
return (config('server'))
|
||||||
->children($dn)
|
->children($dn)
|
||||||
|
@ -26,6 +26,8 @@ use App\Ldap\Entry;
|
|||||||
|
|
||||||
class HomeController extends Controller
|
class HomeController extends Controller
|
||||||
{
|
{
|
||||||
|
private const LOGKEY = 'CHc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new object in the LDAP server
|
* Create a new object in the LDAP server
|
||||||
*
|
*
|
||||||
|
@ -10,10 +10,12 @@ use Illuminate\Support\Facades\Log;
|
|||||||
|
|
||||||
class AcceptLanguage
|
class AcceptLanguage
|
||||||
{
|
{
|
||||||
|
private const LOGKEY = 'MAL';
|
||||||
|
|
||||||
public function handle(Request $request,Closure $next): mixed
|
public function handle(Request $request,Closure $next): mixed
|
||||||
{
|
{
|
||||||
if ($locale=$this->parseHttpLocale($request)) {
|
if ($locale=$this->parseHttpLocale($request)) {
|
||||||
Log::debug(sprintf('Accept Language changed from [%s] to [%s] from Browser (%s)',app()->getLocale(),$locale,$request->header('Accept-Language')));
|
Log::debug(sprintf('%s:Accept Language changed from [%s] to [%s] from Browser (%s)',self::LOGKEY,app()->getLocale(),$locale,$request->header('Accept-Language')));
|
||||||
|
|
||||||
app()->setLocale($locale);
|
app()->setLocale($locale);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user