Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3a01ee79b7
|
@ -320,6 +320,10 @@ public class UserService {
|
|||
public void updateUser(User user) {
|
||||
user.setUpdateTime(System.currentTimeMillis());
|
||||
userMapper.updateByPrimaryKeySelective(user);
|
||||
// 禁用用户之后,剔除在线用户
|
||||
if (StringUtils.equals(user.getStatus(), UserStatus.DISABLED)) {
|
||||
SessionUtils.kickOutUser(user.getId());
|
||||
}
|
||||
}
|
||||
|
||||
public void switchUserRole(String sign, String sourceId) {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="true">
|
||||
<property resource="application.properties"/>
|
||||
<property file="/opt/metersphere/conf/metersphere.properties"/>
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d %5p %40.40c:%4L - %m%n</pattern>
|
||||
|
@ -152,6 +153,10 @@
|
|||
<appender-ref ref="errorAsyncAppender"/>
|
||||
</logger>
|
||||
|
||||
<logger name="io.metersphere.base.mapper" level="${logger.sql.level:ERROR}">
|
||||
<appender-ref ref="console"/>
|
||||
</logger>
|
||||
|
||||
<logger name="io.metersphere.Application" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="infoAsyncAppender"/>
|
||||
</logger>
|
||||
|
|
Loading…
Reference in New Issue