Skip to content

Commit

Permalink
fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jodafons committed Oct 19, 2023
1 parent 54effc7 commit 7e0a9da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/GaugiKernel/GaugiKernel/MsgStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class MsgStreamMirror
GAUGI_WHITE,
GAUGI_GRAY,
GAUGI_CYAN,
GAUGI_GREEN,
GAUGI_NORMAL,
GAUGI_YELLOW,
GAUGI_RED,
GAUGI_BOLDRED,
Expand Down
4 changes: 2 additions & 2 deletions core/GaugiKernel/python/Logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Formatter(logging.Formatter):
colors = {
'VERBOSE': gray,
'DEBUG': cyan,
'INFO': green,
'INFO': "",
'WARNING': bold_yellow,
'ERROR': red,
'CRITICAL': bold_red,
Expand All @@ -144,7 +144,7 @@ def format(self, record):
import os, sys

formatter = Formatter(
"%(asctime)s | Py.%(name)-33.33s %(levelname)7.7s %(message)s",
"Py.%(name)-33.33s %(levelname)7.7s %(message)s",
not(int(os.environ.get('RCM_NO_COLOR',1)) or not(sys.stdout.isatty()))
)
return formatter
Expand Down
4 changes: 2 additions & 2 deletions scripts/simu_trf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@

args = parser.parse_args()

outputLevel = LoggingLevel.fromstring(args.outputLevel)
outputLevel = LoggingLevel.toC(args.outputLevel)

try:

eval(args.command)
exec(args.command)

from ATLAS import ATLASConstruction as ATLAS
# Build the ATLAS detector
Expand Down

0 comments on commit 7e0a9da

Please sign in to comment.