|
@@ -270,7 +270,7 @@ public class Bridge {
|
|
|
if (!rootDirectory.exists()) {
|
|
if (!rootDirectory.exists()) {
|
|
|
throw new Exception("bad filesystem state, root directory does not exist");
|
|
throw new Exception("bad filesystem state, root directory does not exist");
|
|
|
}
|
|
}
|
|
|
- Log.info("[HealthCheck] passed");
|
|
|
|
|
|
|
+ Log.debug("[HealthCheck] passed");
|
|
|
return true;
|
|
return true;
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
Log.error("[HealthCheck] FAILED!", e);
|
|
Log.error("[HealthCheck] FAILED!", e);
|
|
@@ -332,7 +332,7 @@ public class Bridge {
|
|
|
throw new RepositoryNotFoundException(projectName);
|
|
throw new RepositoryNotFoundException(projectName);
|
|
|
}
|
|
}
|
|
|
GetDocResult doc = maybeDoc.get();
|
|
GetDocResult doc = maybeDoc.get();
|
|
|
- Log.info("[{}] Updating repository", projectName);
|
|
|
|
|
|
|
+ Log.debug("[{}] Updating repository", projectName);
|
|
|
return getUpdatedRepoCritical(oauth2, projectName, doc);
|
|
return getUpdatedRepoCritical(oauth2, projectName, doc);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -539,13 +539,13 @@ public class Bridge {
|
|
|
if (maxFileNum.isPresent()) {
|
|
if (maxFileNum.isPresent()) {
|
|
|
long maxFileNum_ = maxFileNum.get();
|
|
long maxFileNum_ = maxFileNum.get();
|
|
|
if (directoryContents.getFileTable().size() > maxFileNum_) {
|
|
if (directoryContents.getFileTable().size() > maxFileNum_) {
|
|
|
- Log.debug("[{}] Too many files: {}/{}", projectName, directoryContents.getFileTable().size(), maxFileNum_);
|
|
|
|
|
|
|
+ Log.warn("[{}] Too many files: {}/{}", projectName, directoryContents.getFileTable().size(), maxFileNum_);
|
|
|
throw new FileLimitExceededException(directoryContents.getFileTable().size(), maxFileNum_);
|
|
throw new FileLimitExceededException(directoryContents.getFileTable().size(), maxFileNum_);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- Log.info("[{}] Pushing files ({} new, {} old)", projectName, directoryContents.getFileTable().size(), oldDirectoryContents.getFileTable().size());
|
|
|
|
|
|
|
+ Log.debug("[{}] Pushing files ({} new, {} old)", projectName, directoryContents.getFileTable().size(), oldDirectoryContents.getFileTable().size());
|
|
|
String postbackKey = postbackManager.makeKeyForProject(projectName);
|
|
String postbackKey = postbackManager.makeKeyForProject(projectName);
|
|
|
- Log.info(
|
|
|
|
|
|
|
+ Log.debug(
|
|
|
"[{}] Created postback key: {}",
|
|
"[{}] Created postback key: {}",
|
|
|
projectName,
|
|
projectName,
|
|
|
postbackKey
|
|
postbackKey
|
|
@@ -557,7 +557,7 @@ public class Bridge {
|
|
|
oldDirectoryContents
|
|
oldDirectoryContents
|
|
|
);
|
|
);
|
|
|
) {
|
|
) {
|
|
|
- Log.info(
|
|
|
|
|
|
|
+ Log.debug(
|
|
|
"[{}] Candidate snapshot created: {}",
|
|
"[{}] Candidate snapshot created: {}",
|
|
|
projectName,
|
|
projectName,
|
|
|
candidate
|
|
candidate
|
|
@@ -565,20 +565,20 @@ public class Bridge {
|
|
|
PushResult result
|
|
PushResult result
|
|
|
= snapshotAPI.push(oauth2, candidate, postbackKey);
|
|
= snapshotAPI.push(oauth2, candidate, postbackKey);
|
|
|
if (result.wasSuccessful()) {
|
|
if (result.wasSuccessful()) {
|
|
|
- Log.info(
|
|
|
|
|
|
|
+ Log.debug(
|
|
|
"[{}] Push to Overleaf successful",
|
|
"[{}] Push to Overleaf successful",
|
|
|
projectName
|
|
projectName
|
|
|
);
|
|
);
|
|
|
- Log.info("[{}] Waiting for postback...", projectName);
|
|
|
|
|
|
|
+ Log.debug("[{}] Waiting for postback...", projectName);
|
|
|
int versionID =
|
|
int versionID =
|
|
|
postbackManager.waitForVersionIdOrThrow(projectName);
|
|
postbackManager.waitForVersionIdOrThrow(projectName);
|
|
|
- Log.info(
|
|
|
|
|
|
|
+ Log.debug(
|
|
|
"[{}] Got version ID for push: {}",
|
|
"[{}] Got version ID for push: {}",
|
|
|
projectName,
|
|
projectName,
|
|
|
versionID
|
|
versionID
|
|
|
);
|
|
);
|
|
|
approveSnapshot(versionID, candidate);
|
|
approveSnapshot(versionID, candidate);
|
|
|
- Log.info(
|
|
|
|
|
|
|
+ Log.debug(
|
|
|
"[{}] Approved version ID: {}",
|
|
"[{}] Approved version ID: {}",
|
|
|
projectName,
|
|
projectName,
|
|
|
versionID
|
|
versionID
|
|
@@ -636,7 +636,7 @@ public class Bridge {
|
|
|
String postbackKey,
|
|
String postbackKey,
|
|
|
int versionID
|
|
int versionID
|
|
|
) throws UnexpectedPostbackException {
|
|
) throws UnexpectedPostbackException {
|
|
|
- Log.info(
|
|
|
|
|
|
|
+ Log.debug(
|
|
|
"[{}]" +
|
|
"[{}]" +
|
|
|
" Postback received by postback thread, version: {}",
|
|
" Postback received by postback thread, version: {}",
|
|
|
projectName,
|
|
projectName,
|
|
@@ -762,7 +762,7 @@ public class Bridge {
|
|
|
)
|
|
)
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
- Log.info(
|
|
|
|
|
|
|
+ Log.debug(
|
|
|
"[{}] Committing version ID: {}",
|
|
"[{}] Committing version ID: {}",
|
|
|
name,
|
|
name,
|
|
|
snapshot.getVersionID()
|
|
snapshot.getVersionID()
|