p4app
p4app copied to clipboard
Logs available for "s1" switch only
Hello,
I am having a problem in p4app environments with multiple switches. The log output folder "/tmp/p4app_logs" will only contain logs for the switch with the name "s1" i.e "p4s.s1.log". Even for the example "multiswitch.p4app", the same problem persists.
As a workaround, I am currently renaming my switch (and links) to s1 to check out the logs from the desired switch. But I think this shouldn't be the expected behavior.
I think this issue is related to this commit message: https://github.com/p4lang/p4app/commit/239dc98cfa0feb062be2e09e5b2eb5ef5996a4e6
There is a hardcoded commands for p4s.s1.log in "docker/scripts/p4apprunner.py":
run_command('touch /tmp/p4app_logs/p4s.s1.log')
run_command('ln -s /tmp/p4app_logs/p4s.s1.log /tmp/p4s.s1.log')
Thank you in advance 👍