-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from rundeck-plugins/logging-to-slf4j
Update dependencies and gradlew version. Update logging to use slf4j.
- Loading branch information
Showing
4 changed files
with
16 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,8 @@ | |
import com.dtolabs.rundeck.core.plugins.configuration.ConfigurationException; | ||
import com.dtolabs.rundeck.core.resources.ResourceModelSource; | ||
import com.dtolabs.rundeck.core.resources.ResourceModelSourceException; | ||
import org.apache.log4j.Logger; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.io.*; | ||
import java.util.*; | ||
|
@@ -58,7 +59,7 @@ | |
* @author Greg Schueler <a href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
public class EC2ResourceModelSource implements ResourceModelSource { | ||
static Logger logger = Logger.getLogger(EC2ResourceModelSource.class); | ||
static Logger logger = LoggerFactory.getLogger(EC2ResourceModelSource.class); | ||
private String accessKey; | ||
private String secretKey; | ||
long refreshInterval = 30000; | ||
|
@@ -272,7 +273,7 @@ private void checkFuture() { | |
try { | ||
iNodeSet = futureResult.get(); | ||
} catch (InterruptedException e) { | ||
logger.debug(e); | ||
logger.debug("Interrupted",e); | ||
} catch (ExecutionException e) { | ||
logger.warn("Error performing query: " + e.getMessage(), e); | ||
} | ||
|
@@ -300,7 +301,7 @@ private void loadMapping() { | |
fileInputStream.close(); | ||
} | ||
} catch (IOException e) { | ||
logger.warn(e); | ||
logger.warn("Error loading mapping file",e); | ||
} | ||
} | ||
if (null != mappingParams) { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,8 @@ | |
import com.dtolabs.rundeck.core.common.NodeEntryImpl; | ||
import com.dtolabs.rundeck.core.common.NodeSetImpl; | ||
import org.apache.commons.beanutils.BeanUtils; | ||
import org.apache.log4j.Logger; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.util.*; | ||
import java.util.concurrent.Executors; | ||
|
@@ -46,8 +47,8 @@ | |
* @author Greg Schueler <a href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
class InstanceToNodeMapper { | ||
static final Logger logger = Logger.getLogger(InstanceToNodeMapper.class); | ||
final AWSCredentials credentials; | ||
static final Logger logger = LoggerFactory.getLogger(InstanceToNodeMapper.class); | ||
final AWSCredentials credentials; | ||
private ClientConfiguration clientConfiguration; | ||
private ExecutorService executorService = Executors.newSingleThreadExecutor(); | ||
private ArrayList<String> filterParams; | ||
|
@@ -164,7 +165,7 @@ private void mapInstances(final NodeSetImpl nodeSet, final Set<Instance> instanc | |
nodeSet.putNode(iNodeEntry); | ||
} | ||
} catch (GeneratorException e) { | ||
logger.error(e); | ||
logger.error("Generator error",e); | ||
} | ||
} | ||
} | ||
|