Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
b939be51
Commit
b939be51
authored
May 28, 2015
by
Stavros Sachtouris
Committed by
Giorgos Korfiatis
Oct 19, 2015
Browse files
Update entry scripts to log with more details
parent
fab12fe2
Changes
2
Hide whitespace changes
Inline
Side-by-side
agkyra/scripts/cli.py
View file @
b939be51
...
...
@@ -30,7 +30,7 @@ import logging
LOGFILE
=
os
.
path
.
join
(
AGKYRA_DIR
,
'agkyra.log'
)
LOGGER
=
logging
.
getLogger
(
'agkyra'
)
HANDLER
=
logging
.
FileHandler
(
LOGFILE
)
FORMATTER
=
logging
.
Formatter
(
"%(levelname)s:%(asctime)s:%(message)s"
)
FORMATTER
=
logging
.
Formatter
(
"
%(name)s
%(levelname)s:%(asctime)s:%(message)s"
)
HANDLER
.
setFormatter
(
FORMATTER
)
LOGGER
.
addHandler
(
HANDLER
)
LOGGER
.
setLevel
(
logging
.
DEBUG
)
...
...
agkyra/scripts/gui.py
View file @
b939be51
...
...
@@ -30,10 +30,10 @@ import logging
LOGFILE
=
os
.
path
.
join
(
AGKYRA_DIR
,
'agkyra.log'
)
LOGGER
=
logging
.
getLogger
(
'agkyra'
)
HANDLER
=
logging
.
FileHandler
(
LOGFILE
)
FORMATTER
=
logging
.
Formatter
(
"%(levelname)s:%(asctime)s:%(message)s"
)
FORMATTER
=
logging
.
Formatter
(
"
%(name)s
%(levelname)s:%(asctime)s:%(message)s"
)
HANDLER
.
setFormatter
(
FORMATTER
)
LOGGER
.
addHandler
(
HANDLER
)
LOGGER
.
setLevel
(
logging
.
INFO
)
LOGGER
.
setLevel
(
logging
.
DEBUG
)
def
main
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment