mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Log actions when (un)compressing project
This commit is contained in:
parent
eba7cbe696
commit
21c524d8b6
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,7 @@ public class FSGitRepoStore implements RepoStore {
|
|||
long[] sizePtr
|
||||
) throws IOException {
|
||||
Project.checkValidProjectName(projectName);
|
||||
Log.info("[{}] bzip2 project", projectName);
|
||||
return Tar.bz2.zip(getDotGitForProject(projectName), sizePtr);
|
||||
}
|
||||
|
||||
|
@ -145,6 +146,7 @@ public class FSGitRepoStore implements RepoStore {
|
|||
long[] sizePtr
|
||||
) throws IOException {
|
||||
Project.checkValidProjectName(projectName);
|
||||
Log.info("[{}] gzip project", projectName);
|
||||
return Tar.gzip.zip(getDotGitForProject(projectName), sizePtr);
|
||||
}
|
||||
|
||||
|
@ -177,6 +179,7 @@ public class FSGitRepoStore implements RepoStore {
|
|||
"evicted project already exist",
|
||||
projectName
|
||||
);
|
||||
Log.info("[{}] un-bzip2 project", projectName);
|
||||
Tar.bz2.unzip(dataStream, getDirForProject(projectName));
|
||||
}
|
||||
|
||||
|
@ -196,6 +199,7 @@ public class FSGitRepoStore implements RepoStore {
|
|||
"evicted project already exist",
|
||||
projectName
|
||||
);
|
||||
Log.info("[{}] un-gzip project", projectName);
|
||||
Tar.gzip.unzip(dataStream, getDirForProject(projectName));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue