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

Commit

Permalink
adding logging to stdout for testing and manaul runs
Browse files Browse the repository at this point in the history
  • Loading branch information
chilcote committed Mar 16, 2016
1 parent cde272c commit 457e282
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgroot/usr/local/outset/outset
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import os
import platform
import shutil
import subprocess
import sys
import time
from stat import S_IXOTH, S_IWOTH
from SystemConfiguration import SCDynamicStoreCopyConsoleUser
Expand Down Expand Up @@ -60,6 +61,9 @@ logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s',
datefmt='%m/%d/%Y %I:%M:%S %p',
level=logging.DEBUG,
filename=log_file)
stdout_logging = logging.StreamHandler()
stdout_logging.setFormatter(logging.Formatter())
logging.getLogger().addHandler(stdout_logging)

def network_up():
'''Returns True if network is up'''
Expand Down

0 comments on commit 457e282

Please sign in to comment.