Skip to content

Commit

Permalink
BF: Fix logging imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Debilski committed Aug 31, 2015
1 parent e269986 commit 6abf275
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pelita/libpelita.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

from .simplesetup import RemoteTeamPlayer

# silence stupid warnings from logging module
logging.root.manager.emittedNoHandlerWarning = 1
_logger = logging.getLogger("pelita.pelitagame")
_logger = logging.getLogger("pelita.libpelita")

TeamSpec = namedtuple("TeamSpec", ["module", "address"])
ModuleSpec = namedtuple("ModuleSpec", ["prefix", "module"])
Expand Down
6 changes: 5 additions & 1 deletion pelitagame
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ from __future__ import print_function
import argparse
import contextlib
import json
import logging
import random
import time

import pelita
from pelita.libpelita import *
_logger = pelita.libpelita._logger

# silence stupid warnings from logging module
logging.root.manager.emittedNoHandlerWarning = 1
_logger = logging.getLogger("pelitagame")

class ReplayPublisher(object):
def __init__(self, publish_sock, replayfile):
Expand Down

0 comments on commit 6abf275

Please sign in to comment.