Skip to content

Commit 219d92d

Browse files
committed
The sea, Brady.
Signed-off-by: snipe <[email protected]>
1 parent cd5546e commit 219d92d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/Console/Commands/LdapSync.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function handle()
7474
$json_summary = ['error' => true, 'error_message' => $e->getMessage(), 'summary' => []];
7575
$this->info(json_encode($json_summary));
7676
}
77-
LOG::info($e);
77+
Log::info($e);
7878

7979
return [];
8080
}
@@ -84,7 +84,7 @@ public function handle()
8484
try {
8585
if ($this->option('base_dn') != '') {
8686
$search_base = $this->option('base_dn');
87-
LOG::debug('Importing users from specified base DN: \"'.$search_base.'\".');
87+
Log::debug('Importing users from specified base DN: \"'.$search_base.'\".');
8888
} else {
8989
$search_base = null;
9090
}
@@ -98,7 +98,7 @@ public function handle()
9898
$json_summary = ['error' => true, 'error_message' => $e->getMessage(), 'summary' => []];
9999
$this->info(json_encode($json_summary));
100100
}
101-
LOG::info($e);
101+
Log::info($e);
102102

103103
return [];
104104
}
@@ -108,16 +108,16 @@ public function handle()
108108

109109
if ($this->option('location') != '') {
110110
$location = Location::where('name', '=', $this->option('location'))->first();
111-
LOG::debug('Location name '.$this->option('location').' passed');
112-
LOG::debug('Importing to '.$location->name.' ('.$location->id.')');
111+
Log::debug('Location name '.$this->option('location').' passed');
112+
Log::debug('Importing to '.$location->name.' ('.$location->id.')');
113113
} elseif ($this->option('location_id') != '') {
114114
$location = Location::where('id', '=', $this->option('location_id'))->first();
115-
LOG::debug('Location ID '.$this->option('location_id').' passed');
116-
LOG::debug('Importing to '.$location->name.' ('.$location->id.')');
115+
Log::debug('Location ID '.$this->option('location_id').' passed');
116+
Log::debug('Importing to '.$location->name.' ('.$location->id.')');
117117
}
118118

119119
if (! isset($location)) {
120-
LOG::debug('That location is invalid or a location was not provided, so no location will be assigned by default.');
120+
Log::debug('That location is invalid or a location was not provided, so no location will be assigned by default.');
121121
}
122122

123123
/* Process locations with explicitly defined OUs, if doing a full import. */
@@ -133,7 +133,7 @@ public function handle()
133133
array_multisort($ldap_ou_lengths, SORT_ASC, $ldap_ou_locations);
134134

135135
if (count($ldap_ou_locations) > 0) {
136-
LOG::debug('Some locations have special OUs set. Locations will be automatically set for users in those OUs.');
136+
Log::debug('Some locations have special OUs set. Locations will be automatically set for users in those OUs.');
137137
}
138138

139139
// Inject location information fields
@@ -151,7 +151,7 @@ public function handle()
151151
$json_summary = ['error' => true, 'error_message' => trans('admin/users/message.error.ldap_could_not_search').' Location: '.$ldap_loc['name'].' (ID: '.$ldap_loc['id'].') cannot connect to "'.$ldap_loc['ldap_ou'].'" - '.$e->getMessage(), 'summary' => []];
152152
$this->info(json_encode($json_summary));
153153
}
154-
LOG::info($e);
154+
Log::info($e);
155155

156156
return [];
157157
}

0 commit comments

Comments
 (0)