Please follow the below template, it will help us to help you!
Please ensure that you are running the latest version of the beta code.
Run pihole -up to update to the latest, then verify that the problem still exists before reporting it.
Problem with Beta 5.0:
I believe this could be a bug while looking at the code.
echo -e " ${INFO} Press Ctrl-C to exit" # Retrieve IPv4/6 addresses source /etc/pihole/setupVars.conf # Strip date from each line # Colour blocklist/blacklist/wildcard entries as red # Colour A/AAAA/DHCP strings as white # Colour everything else as gray tail -f /var/log/pihole.log | sed -E \ -e "s,($(date +'%b %d ')| dnsmasq\[[0-9]*\]),,g" \ -e "s,(.*(blacklisted |gravity blocked ).* is (0.0.0.0|::|NXDOMAIN|${IPV4_ADDRESS%/*}|${IPV6_ADDRESS:-NULL}).*),${COL_RED}&${COL_NC}," \ -e "s,.*(query\\[A|DHCP).*,${COL_NC}&${COL_NC}," \ -e "s,.*,${COL_GRAY}&${COL_NC}," exit 0 } piholeCheckoutFunc() { if [[ "$2" == "-h" ]] || [[ "$2" == "--help" ]]; then echo "Usage: pihole checkout [repo] [branch] Example: 'pihole checkout master' or 'pihole checkout core dev'
From the code, it seems like you guys want to remove the dnsmasq[xxx] from the display output.
I edited the line to the following and it is working (I think how it was intended to).
-e "s,($(date +'%b %d ')| dnsmasq\[.*[0-9]\]),,g" \
** backslash before "[" and "]"
Debug Token:
N/A
2 Likes
DL6ER
February 11, 2020, 2:35pm
2
Ah, yes, thanks for pointing this out, we will make sure to fix this before releasing Pi-hole v5.0.
Thanks for using the Pi-hole and making it a better software!
DL6ER
February 12, 2020, 8:07pm
3
This will be addressed by
pi-hole:release/v5.0
← pi-hole:fix/pihole-tail
opened 08:07PM - 12 Feb 20 UTC
**By submitting this pull request, I confirm the following:**
- [X] I have r… ead and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md), as well as this entire template.
- [X] I have made only one major change in my proposed changes.
- [X] I have commented my proposed changes within the code.
- [X] I have tested my proposed changes, and have included unit tests where possible.
- [X] I am willing to help maintain this change if there are issues with it later.
- [X] I give this submission freely and claim no ownership.
- [X] It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1)
- [X] I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
---
**What does this PR aim to accomplish?:**
Fix a bug brought up on [Discourse](https://discourse.pi-hole.net/t/bug-in-pihole-t-code/28138).
**How does this PR accomplish the above?:**
Fix the first `sed` filter similarly (even if not identical) to what the issue reporter suggested.
**What documentation changes (if any) are needed to support this PR?:**
None