File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/ru/mystamps/web/support/togglz Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 28
28
29
29
import com .github .heneke .thymeleaf .togglz .TogglzDialect ;
30
30
import org .togglz .console .TogglzConsoleServlet ;
31
+ import org .togglz .core .logging .LoggingStateRepository ;
31
32
import org .togglz .core .manager .FeatureManager ;
32
33
import org .togglz .core .manager .FeatureManagerBuilder ;
33
34
import org .togglz .core .repository .cache .CachingStateRepository ;
@@ -47,7 +48,13 @@ public class TogglzConfig {
47
48
@ Bean
48
49
public FeatureManager getFeatureManager () {
49
50
return new FeatureManagerBuilder ()
50
- .stateRepository (new CachingStateRepository (new JDBCStateRepository (dataSource )))
51
+ .stateRepository (
52
+ new LoggingStateRepository (
53
+ new CachingStateRepository (
54
+ new JDBCStateRepository (dataSource )
55
+ )
56
+ )
57
+ )
51
58
.featureEnum (Features .class )
52
59
.userProvider (new SpringSecurityUserProvider (StringAuthority .MANAGE_TOGGLZ ))
53
60
.build ();
You can’t perform that action at this time.
0 commit comments