A free open source IT asset/license management system
Cleaned up logging output
snipe92d46edca37c
diff --git a/app/Http/Controllers/Assets/BulkAssetsController.php b/app/Http/Controllers/Assets/BulkAssetsController.phpindex 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.phpindex 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.}