Log script change/add and removal at INFO level

Closes #6104
This commit is contained in:
Lee Hinman 2014-05-09 12:03:47 +02:00
parent 5b93255ec8
commit 3484ca3737
1 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ public class ScriptService extends AbstractComponent {
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) {
@ -239,7 +239,7 @@ public class ScriptService extends AbstractComponent {
@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());
}