Browse Source
Merge pull request #9300 from smatvienko-tb/feature/base-controller-log-management
BaseController: log management
pull/9335/head
Andrew Shvayka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
application/src/main/java/org/thingsboard/server/controller/BaseController.java
|
|
|
@ -21,7 +21,7 @@ import com.google.common.util.concurrent.Futures; |
|
|
|
import com.google.common.util.concurrent.ListenableFuture; |
|
|
|
import com.google.common.util.concurrent.MoreExecutors; |
|
|
|
import lombok.Getter; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.http.MediaType; |
|
|
|
@ -174,10 +174,11 @@ import static org.thingsboard.server.common.data.query.EntityKeyType.ENTITY_FIEL |
|
|
|
import static org.thingsboard.server.controller.UserController.YOU_DON_T_HAVE_PERMISSION_TO_PERFORM_THIS_OPERATION; |
|
|
|
import static org.thingsboard.server.dao.service.Validator.validateId; |
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@TbCoreComponent |
|
|
|
public abstract class BaseController { |
|
|
|
|
|
|
|
private final Logger log = org.slf4j.LoggerFactory.getLogger(getClass()); |
|
|
|
|
|
|
|
/*Swagger UI description*/ |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|