Skip to content

Commit

Permalink
update examples for new package name
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Dec 4, 2019
1 parent 464eccb commit 18a532b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import logging
from oqubeslogging import OQubesLog
from securedrop_log import SecureDropLog

import ex2
import ex1


def main():
handler = OQubesLog("workvm", "logging")
handler = SecureDropLog("workvm", "logging")
logging.basicConfig(level=logging.DEBUG, handlers=[handler])
logger = logging.getLogger("example")

Expand Down
4 changes: 2 additions & 2 deletions journal-example.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import logging
from oqubeslogging import OQubesLog
from securedrop_log import SecureDropLog
from systemd import journal
import select


def main():
handler = OQubesLog("workvm", "logging")
handler = SecureDropLog("workvm", "logging")
logging.basicConfig(level=logging.DEBUG, handlers=[handler])
logger = logging.getLogger("example")
j = journal.Reader()
Expand Down

0 comments on commit 18a532b

Please sign in to comment.