Skip to content

Commit

Permalink
changed from using Log4j directly to Slf4j
Browse files Browse the repository at this point in the history
  • Loading branch information
burtbeckwith committed Oct 6, 2013
1 parent fb500dc commit c2b0f54
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*/
package grails.plugin.springsecurity.acl

import org.apache.log4j.Level
import org.apache.log4j.Logger
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.security.acls.domain.AccessControlEntryImpl
import org.springframework.security.acls.domain.GrantedAuthoritySid
import org.springframework.security.acls.domain.ObjectIdentityImpl
Expand Down Expand Up @@ -44,7 +44,7 @@ import org.springframework.util.Assert
*/
class AclService implements MutableAclService {

private final Logger log = Logger.getLogger(getClass())
protected final Logger log = LoggerFactory.getLogger(getClass())

/** Dependency injection for aclLookupStrategy. */
def aclLookupStrategy
Expand Down Expand Up @@ -308,7 +308,7 @@ class AclService implements MutableAclService {
protected save(bean) {
bean.validate()
if (bean.hasErrors()) {
if (log.isEnabledFor(Level.WARN)) {
if (log.isWarnEnabled()) {
def message = new StringBuilder(
"problem creating ${bean.getClass().simpleName}: $bean")
def locale = Locale.getDefault()
Expand Down

0 comments on commit c2b0f54

Please sign in to comment.