mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(logs): improvements to searching
This commit is contained in:
@@ -56,7 +56,7 @@ export const setupDockerContainerLogsWebSocketServer = (
|
||||
client
|
||||
.once("ready", () => {
|
||||
const command = `
|
||||
bash -c "docker container logs --timestamps --tail ${tail} ${since === "all" ? "" : `--since ${since}`} --follow ${containerId} | grep -i '${search}'"
|
||||
bash -c "docker container logs --timestamps --tail ${tail} ${since === "all" ? "" : `--since ${since}`} --follow ${containerId} | grep -iF '${search}'"
|
||||
`;
|
||||
client.exec(command, (err, stream) => {
|
||||
if (err) {
|
||||
@@ -91,7 +91,7 @@ export const setupDockerContainerLogsWebSocketServer = (
|
||||
shell,
|
||||
[
|
||||
"-c",
|
||||
`docker container logs --timestamps --tail ${tail} ${since === "all" ? "" : `--since ${since}`} --follow ${containerId} | grep -i '${search}'`,
|
||||
`docker container logs --timestamps --tail ${tail} ${since === "all" ? "" : `--since ${since}`} --follow ${containerId} | grep -iF '${search}'`,
|
||||
],
|
||||
{
|
||||
name: "xterm-256color",
|
||||
|
||||
Reference in New Issue
Block a user