Skip to content

Commit

Permalink
Move some error logs to warnings (#385)
Browse files Browse the repository at this point in the history
* Move some error logs to warnings

* move env inside sudo
  • Loading branch information
MisterTea authored Feb 3, 2021
1 parent 5cfa137 commit d12f234
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/linux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
mkdir -p ~/.ssh/
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
sudo apt-get update
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y sudo apt-get install -y libssl-dev libcurl4-openssl-dev libunwind-dev git cmake gdb protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y sudo apt-get -y upgrade
sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -y libssl-dev libcurl4-openssl-dev libunwind-dev git cmake gdb protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -y upgrade
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git submodule update --init --force --recursive
Expand All @@ -43,8 +43,8 @@ jobs:
mkdir -p ~/.ssh/
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
sudo apt-get update
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y sudo apt-get install -y libssl-dev libcurl4-openssl-dev libunwind-dev git cmake gdb protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y sudo apt-get -y upgrade
sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -y libssl-dev libcurl4-openssl-dev libunwind-dev git cmake gdb protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -y upgrade
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git submodule update --init --force --recursive
Expand All @@ -70,8 +70,8 @@ jobs:
mkdir -p ~/.ssh/
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
sudo apt-get update
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y sudo apt-get install -y libssl-dev libcurl4-openssl-dev libunwind-dev git cmake gdb protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y sudo apt-get -y upgrade
sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -y libssl-dev libcurl4-openssl-dev libunwind-dev git cmake gdb protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -y upgrade
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git submodule update --init --force --recursive
Expand All @@ -97,8 +97,8 @@ jobs:
mkdir -p ~/.ssh/
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
sudo apt-get update
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y sudo apt-get install -y libssl-dev libcurl4-openssl-dev libunwind-dev git cmake gdb protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y sudo apt-get -y upgrade
sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -y libssl-dev libcurl4-openssl-dev libunwind-dev git cmake gdb protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
sudo DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -y upgrade
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git submodule update --init --force --recursive
Expand Down
6 changes: 3 additions & 3 deletions src/base/TcpSocketHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ set<int> TcpSocketHandler::listen(const SocketEndpoint &endpoint) {
if (::bind(sockFd, p->ai_addr, p->ai_addrlen) == -1) {
// This most often happens because the port is in use.
auto localErrno = errno;
LOG(ERROR) << "Error binding " << p->ai_family << "/" << p->ai_socktype
<< "/" << p->ai_protocol << ": " << localErrno << " "
<< strerror(localErrno);
LOG(WARNING) << "Error binding " << p->ai_family << "/" << p->ai_socktype
<< "/" << p->ai_protocol << ": " << localErrno << " "
<< strerror(localErrno);
CLOG(INFO, "stdout") << "Error binding " << p->ai_family << "/"
<< p->ai_socktype << "/" << p->ai_protocol << ": "
<< localErrno << " " << strerror(localErrno) << endl;
Expand Down
2 changes: 1 addition & 1 deletion src/terminal/UserJumphostHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void UserJumphostHandler::run() {
}
}
if (fail) {
STERROR << "Connecting to server failed: Connect timeout";
LOG(WARNING) << "Connecting to server failed: Connect timeout";
connectFailCount++;
if (connectFailCount == 3) {
throw std::runtime_error("Connect Timeout");
Expand Down
2 changes: 1 addition & 1 deletion src/terminal/forwarding/ForwardSourceHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void ForwardSourceHandler::sendDataOnSocket(int socketId, const string& data) {
void ForwardSourceHandler::closeSocket(int socketId) {
auto it = socketFdMap.find(socketId);
if (it == socketFdMap.end()) {
STERROR << "Tried to remove a socket that no longer exists!";
LOG(WARNING) << "Tried to remove a socket that no longer exists!";
} else {
socketHandler->close(it->second);
socketFdMap.erase(it);
Expand Down

0 comments on commit d12f234

Please sign in to comment.