Skip to content

Commit

Permalink
Move cylc.parsec.LOG to cylc.LOG
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow authored and Bruno P. Kinoshita committed Apr 30, 2019
1 parent 7620ed7 commit 82f6628
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
7 changes: 6 additions & 1 deletion lib/cylc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@

import os
import sys
from cylc.parsec import LOG
import logging


LOG = logging.getLogger('cylc') # Acceptable?
if hasattr(logging, 'NullHandler'): # Back compat Python <2.7
LOG.addHandler(logging.NullHandler()) # Start with a null handler


def environ_init():
Expand Down
7 changes: 0 additions & 7 deletions lib/cylc/parsec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Parsec - library for parsing nested Cylc's INI-style configuration."""

import logging


LOG = logging.getLogger('cylc') # Acceptable?
if hasattr(logging, 'NullHandler'): # Back compat Python <2.7
LOG.addHandler(logging.NullHandler()) # Start with a null handler
2 changes: 1 addition & 1 deletion lib/cylc/parsec/fileparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import sys
import re

from cylc.parsec import LOG
from cylc import LOG
from cylc.parsec.exceptions import ParsecError, FileParseError
from cylc.parsec.OrderedDict import OrderedDictWithDefaults
from cylc.parsec.include import inline
Expand Down
2 changes: 1 addition & 1 deletion lib/cylc/parsec/jinja2support.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
TemplateNotFound,
TemplateSyntaxError)

from cylc.parsec import LOG
from cylc import LOG
from cylc.parsec.exceptions import Jinja2Error


Expand Down
2 changes: 1 addition & 1 deletion lib/cylc/parsec/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from logging import DEBUG, WARNING

from cylc.parsec import LOG
from cylc import LOG
from cylc.parsec.exceptions import UpgradeError
from cylc.parsec.OrderedDict import OrderedDict

Expand Down
1 change: 0 additions & 1 deletion lib/cylc/scheduler_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import os
import sys

from cylc import LOG
from cylc.cfgspec.glbl_cfg import glbl_cfg
import cylc.flags
from cylc.host_appointer import HostAppointer, EmptyHostList
Expand Down

0 comments on commit 82f6628

Please sign in to comment.