Remove unused loggers

master
jvoisin 6 years ago
parent a3e59e9724
commit 8123716d52
  1. 4
      airsonic-main/src/main/java/org/airsonic/player/ajax/MultiService.java
  2. 4
      airsonic-main/src/main/java/org/airsonic/player/ajax/StarService.java
  3. 4
      airsonic-main/src/main/java/org/airsonic/player/cache/CacheFactory.java
  4. 2
      airsonic-main/src/main/java/org/airsonic/player/controller/AccessDeniedController.java
  5. 5
      airsonic-main/src/main/java/org/airsonic/player/controller/ExportPlayListController.java
  6. 7
      airsonic-main/src/main/java/org/airsonic/player/controller/IndexController.java
  7. 6
      airsonic-main/src/main/java/org/airsonic/player/controller/LoginController.java
  8. 7
      airsonic-main/src/main/java/org/airsonic/player/controller/NotFoundController.java
  9. 4
      airsonic-main/src/main/java/org/airsonic/player/dao/ArtistDao.java
  10. 4
      airsonic-main/src/main/java/org/airsonic/player/dao/GenericDaoHelper.java
  11. 4
      airsonic-main/src/main/java/org/airsonic/player/dao/PlaylistDao.java
  12. 4
      airsonic-main/src/main/java/org/airsonic/player/service/playlist/XspfPlaylistImportHandler.java

@ -29,8 +29,6 @@ import org.airsonic.player.service.MediaFileService;
import org.airsonic.player.service.SecurityService; import org.airsonic.player.service.SecurityService;
import org.airsonic.player.service.SettingsService; import org.airsonic.player.service.SettingsService;
import org.directwebremoting.WebContextFactory; import org.directwebremoting.WebContextFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -51,8 +49,6 @@ import java.util.List;
@Service("ajaxMultiService") @Service("ajaxMultiService")
public class MultiService { public class MultiService {
private static final Logger LOG = LoggerFactory.getLogger(MultiService.class);
@Autowired @Autowired
private MediaFileService mediaFileService; private MediaFileService mediaFileService;
@Autowired @Autowired

@ -24,8 +24,6 @@ import org.airsonic.player.domain.User;
import org.airsonic.player.service.SecurityService; import org.airsonic.player.service.SecurityService;
import org.directwebremoting.WebContext; import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory; import org.directwebremoting.WebContextFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -39,8 +37,6 @@ import org.springframework.stereotype.Service;
@Service("ajaxStarService") @Service("ajaxStarService")
public class StarService { public class StarService {
private static final Logger LOG = LoggerFactory.getLogger(StarService.class);
@Autowired @Autowired
private SecurityService securityService; private SecurityService securityService;
@Autowired @Autowired

@ -24,8 +24,6 @@ import net.sf.ehcache.Ehcache;
import net.sf.ehcache.config.Configuration; import net.sf.ehcache.config.Configuration;
import net.sf.ehcache.config.ConfigurationFactory; import net.sf.ehcache.config.ConfigurationFactory;
import org.airsonic.player.service.SettingsService; import org.airsonic.player.service.SettingsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.InitializingBean;
import java.io.File; import java.io.File;
@ -37,8 +35,6 @@ import java.io.File;
* @version $Id$ * @version $Id$
*/ */
public class CacheFactory implements InitializingBean { public class CacheFactory implements InitializingBean {
private static final Logger LOG = LoggerFactory.getLogger(CacheFactory.class);
private CacheManager cacheManager; private CacheManager cacheManager;
public void afterPropertiesSet() throws Exception { public void afterPropertiesSet() throws Exception {

@ -17,11 +17,11 @@ import javax.servlet.http.HttpServletResponse;
@RequestMapping("/accessDenied") @RequestMapping("/accessDenied")
public class AccessDeniedController { public class AccessDeniedController {
private static final Logger LOG = LoggerFactory.getLogger(AccessDeniedController.class); private static final Logger LOG = LoggerFactory.getLogger(AccessDeniedController.class);
@RequestMapping(method = {RequestMethod.GET}) @RequestMapping(method = {RequestMethod.GET})
public ModelAndView accessDenied(HttpServletRequest request, HttpServletResponse response) { public ModelAndView accessDenied(HttpServletRequest request, HttpServletResponse response) {
LOG.info("The IP {0} tried to access the forbidden url {1}.", request.getRemoteAddr(), request.getRequestURL())
return new ModelAndView("accessDenied"); return new ModelAndView("accessDenied");
} }

@ -4,8 +4,6 @@ import org.airsonic.player.domain.Playlist;
import org.airsonic.player.service.PlaylistService; import org.airsonic.player.service.PlaylistService;
import org.airsonic.player.service.SecurityService; import org.airsonic.player.service.SecurityService;
import org.airsonic.player.util.StringUtil; import org.airsonic.player.util.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.ServletRequestUtils; import org.springframework.web.bind.ServletRequestUtils;
@ -23,9 +21,6 @@ import javax.servlet.http.HttpServletResponse;
@RequestMapping("/exportPlaylist") @RequestMapping("/exportPlaylist")
public class ExportPlayListController { public class ExportPlayListController {
private static final Logger LOG = LoggerFactory.getLogger(ExportPlayListController.class);
@Autowired @Autowired
private PlaylistService playlistService; private PlaylistService playlistService;
@Autowired @Autowired

@ -3,8 +3,6 @@ package org.airsonic.player.controller;
import org.airsonic.player.domain.UserSettings; import org.airsonic.player.domain.UserSettings;
import org.airsonic.player.service.SecurityService; import org.airsonic.player.service.SecurityService;
import org.airsonic.player.service.SettingsService; import org.airsonic.player.service.SettingsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -20,9 +18,6 @@ import java.util.Map;
@RequestMapping("/index") @RequestMapping("/index")
public class IndexController { public class IndexController {
private static final Logger LOG = LoggerFactory.getLogger(IndexController.class);
@Autowired @Autowired
private SecurityService securityService; private SecurityService securityService;
@Autowired @Autowired
@ -41,6 +36,4 @@ public class IndexController {
map.put("brand", settingsService.getBrand()); map.put("brand", settingsService.getBrand());
return new ModelAndView("index", "model", map); return new ModelAndView("index", "model", map);
} }
} }

@ -4,8 +4,6 @@ import org.airsonic.player.domain.User;
import org.airsonic.player.service.SecurityService; import org.airsonic.player.service.SecurityService;
import org.airsonic.player.service.SettingsService; import org.airsonic.player.service.SettingsService;
import org.airsonic.player.util.StringUtil; import org.airsonic.player.util.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -26,9 +24,6 @@ import java.util.Map;
@Controller @Controller
public class LoginController { public class LoginController {
private static final Logger LOG = LoggerFactory.getLogger(LoginController.class);
@Autowired @Autowired
private SecurityService securityService; private SecurityService securityService;
@Autowired @Autowired
@ -62,5 +57,4 @@ public class LoginController {
return new ModelAndView("login", "model", map); return new ModelAndView("login", "model", map);
} }
} }

@ -1,7 +1,5 @@
package org.airsonic.player.controller; package org.airsonic.player.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
@ -17,13 +15,8 @@ import javax.servlet.http.HttpServletResponse;
@RequestMapping("/notFound") @RequestMapping("/notFound")
public class NotFoundController { public class NotFoundController {
private static final Logger LOG = LoggerFactory.getLogger(NotFoundController.class);
@RequestMapping(method = {RequestMethod.GET}) @RequestMapping(method = {RequestMethod.GET})
public ModelAndView notFound(HttpServletRequest request, HttpServletResponse response) { public ModelAndView notFound(HttpServletRequest request, HttpServletResponse response) {
return new ModelAndView("notFound"); return new ModelAndView("notFound");
} }
} }

@ -21,8 +21,6 @@ package org.airsonic.player.dao;
import org.airsonic.player.domain.Artist; import org.airsonic.player.domain.Artist;
import org.airsonic.player.domain.MusicFolder; import org.airsonic.player.domain.MusicFolder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -38,8 +36,6 @@ import java.util.*;
*/ */
@Repository @Repository
public class ArtistDao extends AbstractDao { public class ArtistDao extends AbstractDao {
private static final Logger LOG = LoggerFactory.getLogger(ArtistDao.class);
private static final String INSERT_COLUMNS = "name, cover_art_path, album_count, last_scanned, present, folder_id"; private static final String INSERT_COLUMNS = "name, cover_art_path, album_count, last_scanned, present, folder_id";
private static final String QUERY_COLUMNS = "id, " + INSERT_COLUMNS; private static final String QUERY_COLUMNS = "id, " + INSERT_COLUMNS;

@ -1,7 +1,5 @@
package org.airsonic.player.dao; package org.airsonic.player.dao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
@ -9,8 +7,6 @@ import javax.sql.DataSource;
public class GenericDaoHelper implements DaoHelper { public class GenericDaoHelper implements DaoHelper {
private static final Logger LOG = LoggerFactory.getLogger(GenericDaoHelper.class);
final JdbcTemplate jdbcTemplate; final JdbcTemplate jdbcTemplate;
final NamedParameterJdbcTemplate namedParameterJdbcTemplate; final NamedParameterJdbcTemplate namedParameterJdbcTemplate;

@ -21,8 +21,6 @@ package org.airsonic.player.dao;
import org.airsonic.player.domain.MediaFile; import org.airsonic.player.domain.MediaFile;
import org.airsonic.player.domain.Playlist; import org.airsonic.player.domain.Playlist;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -38,8 +36,6 @@ import java.util.*;
*/ */
@Repository @Repository
public class PlaylistDao extends AbstractDao { public class PlaylistDao extends AbstractDao {
private static final Logger LOG = LoggerFactory.getLogger(PlaylistDao.class);
private static final String INSERT_COLUMNS = "username, is_public, name, comment, file_count, duration_seconds, " + private static final String INSERT_COLUMNS = "username, is_public, name, comment, file_count, duration_seconds, " +
"created, changed, imported_from"; "created, changed, imported_from";
private static final String QUERY_COLUMNS = "id, " + INSERT_COLUMNS; private static final String QUERY_COLUMNS = "id, " + INSERT_COLUMNS;

@ -7,8 +7,6 @@ import chameleon.playlist.xspf.StringContainer;
import org.airsonic.player.domain.MediaFile; import org.airsonic.player.domain.MediaFile;
import org.airsonic.player.service.MediaFileService; import org.airsonic.player.service.MediaFileService;
import org.airsonic.player.util.Pair; import org.airsonic.player.util.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -21,8 +19,6 @@ import java.util.stream.Collectors;
@Component @Component
public class XspfPlaylistImportHandler implements PlaylistImportHandler { public class XspfPlaylistImportHandler implements PlaylistImportHandler {
private static final Logger LOG = LoggerFactory.getLogger(XspfPlaylistImportHandler.class);
@Autowired @Autowired
MediaFileService mediaFileService; MediaFileService mediaFileService;

Loading…
Cancel
Save