From 92d46edca37cd66766d66c9e256fbc84fc07d298 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 1 Jul 2022 13:33:58 -0700 Subject: [PATCH] Cleaned up logging output Signed-off-by: snipe --- app/Http/Controllers/Assets/BulkAssetsController.php | 4 ---- app/Models/Ldap.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Http/Controllers/Assets/BulkAssetsController.php b/app/Http/Controllers/Assets/BulkAssetsController.php index ca368cfb3a..5053fca0bb 100644 --- a/app/Http/Controllers/Assets/BulkAssetsController.php +++ b/app/Http/Controllers/Assets/BulkAssetsController.php @@ -39,10 +39,6 @@ class BulkAssetsController extends Controller $bulk_back_url = request()->headers->get('referer'); session(['bulk_back_url' => $bulk_back_url]); - \Log::debug('Back to url: '.$bulk_back_url); - - - $asset_ids = array_values(array_unique($request->input('ids'))); if ($request->filled('bulk_actions')) { diff --git a/app/Models/Ldap.php b/app/Models/Ldap.php index a24e062f97..e2b8ba12bd 100644 --- a/app/Models/Ldap.php +++ b/app/Models/Ldap.php @@ -313,7 +313,7 @@ class Ldap extends Model $ldap_controls = [['oid' => LDAP_CONTROL_PAGEDRESULTS, 'iscritical' => false, 'value' => ['size'=> $count == -1||$count>$page_size ? $page_size : $count, 'cookie' => $cookie]]]; //} $search_results = ldap_search($ldapconn, $base_dn, $filter, [], 0, /* $page_size */ -1, -1, LDAP_DEREF_NEVER, $ldap_controls); // TODO - I hate the @, and I hate that we get a full page even if we ask for 10 records. Can we use an ldap_control? - \Log::debug("did the search run? I guess so if you got here!"); + \Log::debug("LDAP search executed successfully."); if (! $search_results) { return redirect()->route('users.index')->with('error', trans('admin/users/message.error.ldap_could_not_search').ldap_error($ldapconn)); // TODO this is never called in any routed context - only from the Artisan command. So this redirect will never work. }