Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FofbTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
FofbTool
Commits
356d3075
Commit
356d3075
authored
7 months ago
by
Dominique PEDEAU
Browse files
Options
Downloads
Patches
Plain Diff
Update DG_PY_FOFBTool.py
probleme de lancer avec astor du au log, mis en commentaire
parent
fa8fd87f
Branches
dev_rcm
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DG_PY_FOFBTool/DG_PY_FOFBTool.py
+4
-4
4 additions, 4 deletions
DG_PY_FOFBTool/DG_PY_FOFBTool.py
with
4 additions
and
4 deletions
DG_PY_FOFBTool/DG_PY_FOFBTool.py
+
4
−
4
View file @
356d3075
...
@@ -204,7 +204,7 @@ class DG_PY_FOFBTool(Device):
...
@@ -204,7 +204,7 @@ class DG_PY_FOFBTool(Device):
self
.
info_stream
(
"
FofbTool {}
"
.
format
(
FofbTool
.
__version__
))
self
.
info_stream
(
"
FofbTool {}
"
.
format
(
FofbTool
.
__version__
))
logger
=
logging
.
getLogger
(
"
FofbTool
"
)
'''
logger = logging.getLogger(
"
FofbTool
"
)
try:
try:
fh=logging.FileHandler(self.logfilepath)
fh=logging.FileHandler(self.logfilepath)
except FileNotFoundError:
except FileNotFoundError:
...
@@ -216,7 +216,7 @@ class DG_PY_FOFBTool(Device):
...
@@ -216,7 +216,7 @@ class DG_PY_FOFBTool(Device):
self.filehandler = fh
self.filehandler = fh
logger
.
setLevel
(
getattr
(
logging
,
self
.
loglevel
.
upper
()))
logger.setLevel(getattr(logging, self.loglevel.upper()))
'''
if
not
hasattr
(
self
,
"
_include_lbp
"
):
if
not
hasattr
(
self
,
"
_include_lbp
"
):
self
.
_include_lbp
=
False
self
.
_include_lbp
=
False
...
@@ -241,8 +241,8 @@ class DG_PY_FOFBTool(Device):
...
@@ -241,8 +241,8 @@ class DG_PY_FOFBTool(Device):
"""
"""
#----- PROTECTED REGION ID(DG_PY_FOFBTool.delete_device) ENABLED START -----#
#----- PROTECTED REGION ID(DG_PY_FOFBTool.delete_device) ENABLED START -----#
logger
=
logging
.
getLogger
(
"
FofbTool
"
)
#
logger = logging.getLogger("FofbTool")
logger
.
removeHandler
(
self
.
filehandler
)
#
logger.removeHandler(self.filehandler)
#----- PROTECTED REGION END -----# // DG_PY_FOFBTool.delete_device
#----- PROTECTED REGION END -----# // DG_PY_FOFBTool.delete_device
# ------------------
# ------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment