Commit a6a3bf2c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Hugo Beauzée-Luyssen
Browse files

MediaLibrary: Reduce log level when inserting duplicated tasks


(cherry picked from commit b2466636)
parent 4dbcaf2f
Pipeline #10631 passed with stage
in 32 minutes and 57 seconds
......@@ -579,7 +579,7 @@ void MediaLibrary::onDiscoveredFile( std::shared_ptr<fs::IFile> fileFs,
{
// Most likely the file is already scheduled and we restarted the
// discovery after a crash.
LOG_WARN( "Failed to insert ", mrl, ": ", ex.what(), ". "
LOG_INFO( "Failed to insert ", mrl, ": ", ex.what(), ". "
"Assuming the file is already scheduled for discovery" );
}
try
......@@ -599,7 +599,7 @@ void MediaLibrary::onDiscoveredFile( std::shared_ptr<fs::IFile> fileFs,
// needs to be in a different catch clause (otherwise we'd have a
// constraint violation for the Creation task, and wouldn't try to
// create the link task while it should be.
LOG_WARN( "Failed to create link task for ", mrl, ": ", ex.what(), ". "
LOG_INFO( "Failed to create link task for ", mrl, ": ", ex.what(), ". "
"Assuming it was already created before" );
}
}
......@@ -621,7 +621,7 @@ void MediaLibrary::onUpdatedFile( std::shared_ptr<File> file,
{
// Most likely the file is already scheduled and we restarted the
// discovery after a crash.
LOG_WARN( "Failed to insert ", mrl, ": ", ex.what(), ". "
LOG_INFO( "Failed to insert ", mrl, ": ", ex.what(), ". "
"Assuming the file is already scheduled for discovery" );
}
}
......
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