Skip to content

Commit

Permalink
Fix logger namespace (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Mar 24, 2020
1 parent edceaf9 commit 38ec768
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pkg.suggestion.v1alpha3.internal.search_space import *
from pkg.suggestion.v1alpha3.internal.trial import *

logger = logging.getLogger("BaseChocolateService")
logger = logging.getLogger(__name__)


class BaseChocolateService(object):
Expand Down
2 changes: 1 addition & 1 deletion pkg/suggestion/v1alpha3/chocolate_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pkg.suggestion.v1alpha3.chocolate.base_chocolate_service import BaseChocolateService
from pkg.suggestion.v1alpha3.base_health_service import HealthServicer

logger = logging.getLogger("ChocolateService")
logger = logging.getLogger(__name__)


class ChocolateService(
Expand Down
2 changes: 1 addition & 1 deletion pkg/suggestion/v1alpha3/hyperopt/base_hyperopt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pkg.suggestion.v1alpha3.internal.search_space import *
from pkg.suggestion.v1alpha3.internal.trial import *

logger = logging.getLogger("BaseHyperoptService")
logger = logging.getLogger(__name__)

TPE_ALGORITHM_NAME = "tpe"
RANDOM_ALGORITHM_NAME = "random"
Expand Down
2 changes: 1 addition & 1 deletion pkg/suggestion/v1alpha3/hyperopt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pkg.suggestion.v1alpha3.hyperopt.base_hyperopt_service import BaseHyperoptService
from pkg.suggestion.v1alpha3.base_health_service import HealthServicer

logger = logging.getLogger("HyperoptRandomService")
logger = logging.getLogger(__name__)


class HyperoptService(api_pb2_grpc.SuggestionServicer, HealthServicer):
Expand Down
2 changes: 1 addition & 1 deletion pkg/suggestion/v1alpha3/internal/search_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
DISCRETE = "DISCRETE"

logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger("HyperParameterSearchSpace")
logger = logging.getLogger(__name__)


class HyperParameterSearchSpace(object):
Expand Down
2 changes: 1 addition & 1 deletion pkg/suggestion/v1alpha3/internal/trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger("Trial")
logger = logging.getLogger(__name__)


class Trial(object):
Expand Down
2 changes: 1 addition & 1 deletion pkg/suggestion/v1alpha3/skopt/base_skopt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pkg.suggestion.v1alpha3.internal.trial import *
import datetime

logger = logging.getLogger("BaseSkoptService")
logger = logging.getLogger(__name__)


class BaseSkoptService(object):
Expand Down
2 changes: 1 addition & 1 deletion pkg/suggestion/v1alpha3/skopt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pkg.suggestion.v1alpha3.base_health_service import HealthServicer


logger = logging.getLogger("SkoptService")
logger = logging.getLogger(__name__)


class SkoptService(api_pb2_grpc.SuggestionServicer, HealthServicer):
Expand Down

0 comments on commit 38ec768

Please sign in to comment.