[Sync] Log when starting to scan local files

This commit is contained in:
Paul Campbell 2019-05-24 08:00:04 +01:00
parent 44cf67c9cc
commit 2ff5d68b4f
2 changed files with 4 additions and 0 deletions

View file

@ -15,6 +15,7 @@ class Sync(s3Client: S3Client)
logRunStart
listObjects(c.bucket, c.prefix)
.map { implicit s3ObjectsData => {
logFileScan
val actions = for {
file <- findFiles(c.source)
data <- getMetadata(file)

View file

@ -9,6 +9,9 @@ trait SyncLogging extends Logging {
log1(s"Bucket: ${c.bucket.name}, Prefix: ${c.prefix.key}, Source: ${c.source}, " +
s"Filter: ${c.filters.map{f => f.filter}.mkString(""", """)}")(c)
def logFileScan(implicit c: Config): Unit =
log1(s"Scanning local files: ${c.source}...")
def logRunFinished(actions: List[S3Action])
(implicit c: Config): Unit = {