Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Read config from sidecar.config System Property instead of classpath
Alters configuration processing to read from `sidecar.config` system property instead of using `Configurations` file resolution, which seems to read from classpath first. Also does the following: * Move `conf` into `src/dist/config`. This causes the `conf` directory to be included in the tar and zip distributions where it previously was not. * Don't add `conf` directory to classpath. For logging add `-Dlogback.configuration` to arguments. Also add `logback-test.xml` to have different logging behavior for tests. * Copy agents into `build/install/appName/agents` directly instead of `src/dist`. Make `copyDist` depend on `copyJolokia`. This also has the side effect of having agents copied to the project directory, so `bin/CassandraSidecarDaemon` works after `./gradlew build`. * Improve logging to include full address instead of just port. * Add generated paths to gitignore patch by Andrew Tolbert; reviewed by Dinesh Joshi and Vinay Chella for CASSANDRA-15288
- Loading branch information
1 parent
2f9e393
commit 14485bd7ad649d9417b4320eab34631251545d0b
Showing
8 changed files
with
90 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -78,3 +78,12 @@ src/main/resources/docs/* | ||
|
||
src/dist/* | ||
*.logdir_IS_UNDEFINED | ||
|
||
# Sidecar copyDist files copied to root directory | ||
agents | ||
bin | ||
conf | ||
lib | ||
|
||
# Local gradle cache | ||
.gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,37 @@ | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one | ||
~ or more contributor license agreements. See the NOTICE file | ||
~ distributed with this work for additional information | ||
~ regarding copyright ownership. The ASF licenses this file | ||
~ to you under the Apache License, Version 2.0 (the | ||
~ "License"); you may not use this file except in compliance | ||
~ with the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<configuration> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>DEBUG</level> | ||
</filter> | ||
<encoder> | ||
<pattern>%-5level [%thread] %date{ISO8601} %F:%L - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
|
||
|
||
<logger name="com.datastax.driver.core" level="ERROR" /> | ||
<logger name="com.datastax.driver.core.ControlConnection" level="OFF" /> | ||
</configuration> |