Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ private void StartProxy()
.Add("--tls-cert", Path.Combine(LocalCertsPath, "cert.pem"), true)
.Add("--tls-ca", Path.Combine(LocalCertsPath, "ca.pem"), true)
.Build();
_proxyProcess = _processExecutor.Start(proxyPath, args);
_proxyProcess = _processExecutor.Start(proxyPath, args, stdOut: LogStdOut, stdErr: LogStdError);
// Give it some time to startup
if (_proxyProcess.WaitForExit(1000))
{
Expand Down Expand Up @@ -569,6 +569,14 @@ private void OnConfigurationChanged(object sender, ConfigurationChangedEventArgs
_ = Task.Run(() => UpdateCertificates());
}
}
private void LogStdOut(string s)
{
_logger.LogInformation(s);
}
private void LogStdError(string s)
{
_logger.LogInformation(s);
}
}

#pragma warning restore CA2254
8 changes: 4 additions & 4 deletions internal/rewrite/rewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func mapPath(binding string, context *rewriteContext) string {
} else if strings.HasPrefix(s, "/") {
s = path + s
}
logger.Warnf("%s ==> %-40s", lctx, s)
logger.Infof("%s ==> %-40s", lctx, s)
return s
}

Expand All @@ -316,7 +316,7 @@ func mapPathV2(binding string, context *rewriteContext) string {
// (e.g. //var/run/docker.sock)
if strings.HasPrefix(binding, "//") {
// Log the mapping result
logger.Warnf("%s ==> %-40s", lctx, binding)
logger.Infof("%s ==> %-40s", lctx, binding)
return binding
}

Expand Down Expand Up @@ -391,7 +391,7 @@ func mapPathV2(binding string, context *rewriteContext) string {
if context.rewriteType == Request {
parts[0] = getHostMountPath(allPathSegments...)
} else {
logger.Warnf("%s Don't know how to map mount type %s (type: %s) for response ", lctx, parts[0], mntType)
logger.Infof("%s Don't know how to map mount type %s (type: %s) for response ", lctx, parts[0], mntType)
}
}
s = strings.Join(parts, ":")
Expand Down Expand Up @@ -442,7 +442,7 @@ func mapPathV2(binding string, context *rewriteContext) string {
}

// Log the mapping result
logger.Warnf("%s ==> %-40s", lctx, s)
logger.Infof("%s ==> %-40s", lctx, s)

return s
}
Expand Down