diff --git a/src/main/java/net/lamgc/oracle/sentry/ApplicationInitiation.java b/src/main/java/net/lamgc/oracle/sentry/ApplicationInitiation.java index cbf9885..7b769f7 100644 --- a/src/main/java/net/lamgc/oracle/sentry/ApplicationInitiation.java +++ b/src/main/java/net/lamgc/oracle/sentry/ApplicationInitiation.java @@ -3,6 +3,7 @@ package net.lamgc.oracle.sentry; import com.google.common.base.Throwables; import com.oracle.bmc.auth.AuthenticationDetailsProvider; import net.lamgc.oracle.sentry.script.ScriptComponents; +import net.lamgc.oracle.sentry.script.ScriptLoggerFactory; import net.lamgc.oracle.sentry.script.ScriptManager; import net.lamgc.oracle.sentry.script.tools.http.ScriptHttpClient; import org.apache.http.impl.client.HttpClientBuilder; @@ -95,7 +96,9 @@ class ApplicationInitiation { public ScriptManager initialScriptManager(ComputeInstanceManager instanceManager) { ScriptComponents context = new ScriptComponents(new ScriptHttpClient(HttpClientBuilder.create() .build()), - instanceManager); + instanceManager, + new ScriptLoggerFactory() + ); ScriptManager manager = new ScriptManager(new File(scriptsLocation), context); manager.loadScripts(); diff --git a/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/CommandExecSession.java b/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/CommandExecSession.java index 1bed13d..50f9a65 100644 --- a/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/CommandExecSession.java +++ b/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/CommandExecSession.java @@ -1,7 +1,7 @@ package net.lamgc.oracle.sentry.oci.compute.ssh; -import net.lamgc.oracle.sentry.common.InputStreamWrapper; -import net.lamgc.oracle.sentry.common.OutputStreamWrapper; +import net.lamgc.oracle.sentry.common.io.InputStreamWrapper; +import net.lamgc.oracle.sentry.common.io.OutputStreamWrapper; import org.apache.sshd.client.channel.ChannelExec; import org.apache.sshd.client.channel.ClientChannelEvent;