mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #5477 from overleaf/jk-git-bridge-put-log-upgrade
[git-bridge] raise log level to error in put hook GitOrigin-RevId: 45a4a77200f8e8490c4b70922614253c984c9d36
This commit is contained in:
parent
fb51388f71
commit
231ba305ed
1 changed files with 4 additions and 4 deletions
|
@ -74,20 +74,20 @@ public class WriteLatexPutHook implements PreReceiveHook {
|
||||||
receiveCommand
|
receiveCommand
|
||||||
);
|
);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.debug("IOException on pre receive: {}", e.getMessage());
|
Log.error("IOException on pre receive", e);
|
||||||
receivePack.sendError(e.getMessage());
|
receivePack.sendError(e.getMessage());
|
||||||
receiveCommand.setResult(
|
receiveCommand.setResult(
|
||||||
Result.REJECTED_OTHER_REASON,
|
Result.REJECTED_OTHER_REASON,
|
||||||
e.getMessage()
|
e.getMessage()
|
||||||
);
|
);
|
||||||
} catch (OutOfDateException e) {
|
} catch (OutOfDateException e) {
|
||||||
Log.debug("OutOfDateException on pre receive: {}", e.getMessage());
|
Log.error("OutOfDateException on pre receive", e);
|
||||||
receiveCommand.setResult(Result.REJECTED_NONFASTFORWARD);
|
receiveCommand.setResult(Result.REJECTED_NONFASTFORWARD);
|
||||||
} catch (GitUserException e) {
|
} catch (GitUserException e) {
|
||||||
Log.debug("GitUserException on pre receive: {}", e.getMessage());
|
Log.error("GitUserException on pre receive", e);
|
||||||
handleSnapshotPostException(receivePack, receiveCommand, e);
|
handleSnapshotPostException(receivePack, receiveCommand, e);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
Log.warn("Throwable on pre receive: {}", t.getMessage());
|
Log.error("Throwable on pre receive", t);
|
||||||
handleSnapshotPostException(
|
handleSnapshotPostException(
|
||||||
receivePack,
|
receivePack,
|
||||||
receiveCommand,
|
receiveCommand,
|
||||||
|
|
Loading…
Reference in a new issue