Commit ce1953da authored by Szabolcs Gyurko's avatar Szabolcs Gyurko
Browse files

Removed direct logback logging and use play's logger

parent 087f9d30
package sget2
import entities.{ChunkRecord, ChunksTable, JobsTable, QueueTable}
import org.slf4j.LoggerFactory
import play.api.Logger
import play.api.db.slick.DatabaseConfigProvider
import slick.driver.JdbcProfile
import workers.{FtpWorker, HttpWorker}
......@@ -18,7 +18,6 @@ case class DownloadQueueSettings(jobList: List[DownloadJobSettings],
* @author GYURKS
*/
class DownloadQueue (private val sget2: SGet2, private val dbConfigProvider: DatabaseConfigProvider) {
private val LOGGER = LoggerFactory.getLogger(getClass)
val jobList = new ListBuffer[DownloadJob]()
private var _bandwidthLimit: Int = 0
private val threadGroup = new ThreadGroup("DownloadQueue")
......@@ -69,7 +68,7 @@ class DownloadQueue (private val sget2: SGet2, private val dbConfigProvider: Dat
case "https" Some(new HttpWorker(job, sget2))
case "ftp" Some(new FtpWorker(job, sget2))
case _
LOGGER.warn("Unknown protocol: {}, can't find a worker implementation for it", job.url.getProtocol)
Logger.warn("Unknown protocol: s{job.url.getProtocol}, can't find a worker implementation for it")
None
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment