Add option to skip timestamps on logging output
So it is easier to follow live when you are doing debugging, especially early days app setup when you are the only user.
This commit is contained in:
@@ -77,6 +77,12 @@ class CommandsProxyTest < ActiveSupport::TestCase
|
||||
new_command.logs(lines: 10).join(" ")
|
||||
end
|
||||
|
||||
test "proxy logs without timestamps" do
|
||||
assert_equal \
|
||||
"docker logs kamal-proxy 2>&1",
|
||||
new_command.logs(timestamps: false).join(" ")
|
||||
end
|
||||
|
||||
test "proxy logs with grep hello!" do
|
||||
assert_equal \
|
||||
"docker logs kamal-proxy --timestamps 2>&1 | grep 'hello!'",
|
||||
|
||||
Reference in New Issue
Block a user