@@ -74,7 +74,7 @@ public function handle()
74
74
$ json_summary = ['error ' => true , 'error_message ' => $ e ->getMessage (), 'summary ' => []];
75
75
$ this ->info (json_encode ($ json_summary ));
76
76
}
77
- LOG ::info ($ e );
77
+ Log ::info ($ e );
78
78
79
79
return [];
80
80
}
@@ -84,7 +84,7 @@ public function handle()
84
84
try {
85
85
if ($ this ->option ('base_dn ' ) != '' ) {
86
86
$ 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 .'\". ' );
88
88
} else {
89
89
$ search_base = null ;
90
90
}
@@ -98,7 +98,7 @@ public function handle()
98
98
$ json_summary = ['error ' => true , 'error_message ' => $ e ->getMessage (), 'summary ' => []];
99
99
$ this ->info (json_encode ($ json_summary ));
100
100
}
101
- LOG ::info ($ e );
101
+ Log ::info ($ e );
102
102
103
103
return [];
104
104
}
@@ -108,16 +108,16 @@ public function handle()
108
108
109
109
if ($ this ->option ('location ' ) != '' ) {
110
110
$ 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 .') ' );
113
113
} elseif ($ this ->option ('location_id ' ) != '' ) {
114
114
$ 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 .') ' );
117
117
}
118
118
119
119
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. ' );
121
121
}
122
122
123
123
/* Process locations with explicitly defined OUs, if doing a full import. */
@@ -133,7 +133,7 @@ public function handle()
133
133
array_multisort ($ ldap_ou_lengths , SORT_ASC , $ ldap_ou_locations );
134
134
135
135
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. ' );
137
137
}
138
138
139
139
// Inject location information fields
@@ -151,7 +151,7 @@ public function handle()
151
151
$ 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 ' => []];
152
152
$ this ->info (json_encode ($ json_summary ));
153
153
}
154
- LOG ::info ($ e );
154
+ Log ::info ($ e );
155
155
156
156
return [];
157
157
}
0 commit comments