Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Initiate logging
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Aug 22, 2024
1 parent 73c37b2 commit 164ed8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/nav/bin/update_ouis.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@

from nav.models.oui import OUI
from nav.macaddress import MacPrefix
from nav.logs import init_generic_logging

_logger = logging.getLogger(__name__)

FILE_URL = "https://standards-oui.ieee.org/oui/oui.txt"
LOGFILE = "update_ouis.log"


def main():
Expand Down Expand Up @@ -84,4 +86,5 @@ def _update_database(ouis: Iterable[OUI]):


if __name__ == '__main__':
init_generic_logging(logfile=LOGFILE, stderr=False, read_config=True)
main()

0 comments on commit 164ed8f

Please sign in to comment.