Skip to content

Commit

Permalink
cleaning up ip tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayles committed Mar 24, 2020
1 parent d69c85c commit 7a21610
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion arpwatch/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def tracker(request, username):
prefix = getattr(settings, 'ARP_IP_PFX', '')
if ip and ip.startwith(prefix):
arp.register_user_ip(user, ip)
print("register_user_ip: Address for %s = %s @ %s" % (user, ip, logtime))
print(f"tracker: Address for {username} = {ip}")
return HttpResponse()

# Copyright 2020 Office Nomads LLC (https://officenomads.com/) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://opensource.org/licenses/Apache-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
1 change: 0 additions & 1 deletion nadine/templatetags/arp_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# settings value
@register.simple_tag
def arp_tracker(user):
print("hello world")
url = getattr(settings, 'ARP_TRACKING_URL', "")
if user and url:
if not url.endswith('/'):
Expand Down

0 comments on commit 7a21610

Please sign in to comment.