Skip to content

Commit

Permalink
Log script change/add and removal at INFO level
Browse files Browse the repository at this point in the history
Closes #6104
  • Loading branch information
dakrone committed May 13, 2014
1 parent 80b9a27 commit 4bb3a92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/elasticsearch/script/ScriptService.java
Expand Up @@ -212,7 +212,7 @@ public void onFileInit(File file) {
if (s.equals(scriptNameExt.v2())) {
found = true;
try {
logger.trace("compiling script file " + file.getAbsolutePath());
logger.info("compiling script file [{}]", file.getAbsolutePath());
String script = Streams.copyToString(new InputStreamReader(new FileInputStream(file), Charsets.UTF_8));
staticCache.put(scriptNameExt.v1(), new CompiledScript(engineService.types()[0], engineService.compile(script)));
} catch (Throwable e) {
Expand All @@ -239,7 +239,7 @@ public void onFileCreated(File file) {
@Override
public void onFileDeleted(File file) {
Tuple<String, String> scriptNameExt = scriptNameExt(file);
logger.trace("removing script file " + file.getAbsolutePath());
logger.info("removing script file [{}]", file.getAbsolutePath());
staticCache.remove(scriptNameExt.v1());
}

Expand Down

0 comments on commit 4bb3a92

Please sign in to comment.