Skip to content

Commit 92f904d

Browse files
authored
Fix run scripts (#667)
* Fix run scripts * Change log level
1 parent 0b13146 commit 92f904d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: docker/release_distribution_scripts/utbot_run_system.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ then
114114

115115
#Server-specific parameters
116116
UTBOT_EXECUTABLE_PATH=$UTBOT_BINARIES_FOLDER/$UTBOT_PROCESS_PATTERN
117-
UTBOT_SERVER_OPTIONS="server --port $UTBOT_PORT --log=$UTBOT_LOGS_FOLDER"
117+
UTBOT_SERVER_OPTIONS="--log=$UTBOT_LOGS_FOLDER server --port $UTBOT_PORT"
118118
UTBOT_STDOUT_LOG_FILE=$UTBOT_LOGS_FOLDER/logs/"latest.log"
119119

120120
log "Starting a new server process; logs are written into [$UTBOT_LOGS_FOLDER] folder"

Diff for: docker/release_distribution_scripts/utbot_server_restart.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111

1212
#Prompt kill all running UTBot servers with same port
1313
IFS=";"
14-
RUNNING=$( ps aux | grep "utbot server" | grep -v grep | grep "\-\-port $UTBOT_PORT" )
14+
RUNNING=$( ps aux | grep "utbot .*server" | grep -v grep | grep "\-\-port $UTBOT_PORT" )
1515

1616
if test -n "$RUNNING"
1717
then

Diff for: server/src/building/ProjectBuildDatabse.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void ProjectBuildDatabase::initObjects(const nlohmann::json &compileCommandsJson
9191
} else {
9292
jsonArguments = std::vector<std::string>(compileCommand.at("arguments"));
9393
}
94-
LOG_S(INFO) << "Processing build command: " << StringUtils::joinWith(jsonArguments, " ");
94+
LOG_S(MAX) << "Processing build command: " << StringUtils::joinWith(jsonArguments, " ");
9595
std::transform(jsonArguments.begin(), jsonArguments.end(), jsonArguments.begin(),
9696
[&directory](const std::string &argument) {
9797
return tryConvertOptionToPath(argument, directory);
@@ -188,13 +188,13 @@ void ProjectBuildDatabase::initInfo(const nlohmann::json &linkCommandsJson, bool
188188
} else {
189189
jsonArguments = std::vector<std::string>(linkCommand.at("arguments"));
190190
}
191-
LOG_S(INFO) << "Processing link command: " << StringUtils::joinWith(jsonArguments, " ");
191+
LOG_S(MAX) << "Processing link command: " << StringUtils::joinWith(jsonArguments, " ");
192192
if (StringUtils::endsWith(jsonArguments[0], "ranlib")) {
193-
LOG_S(INFO) << "Skip ranlib command";
193+
LOG_S(MAX) << "Skip ranlib command";
194194
continue;
195195
}
196196
if (StringUtils::endsWith(jsonArguments[0], "cmake")) {
197-
LOG_S(INFO) << "Skip cmake command";
197+
LOG_S(MAX) << "Skip cmake command";
198198
continue;
199199
}
200200
std::transform(jsonArguments.begin(), jsonArguments.end(), jsonArguments.begin(),

0 commit comments

Comments
 (0)