Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
1d298cf1
Commit
1d298cf1
authored
Oct 05, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multiple log lines splits to separate entries
parent
a7396265
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
logger.py
settingsd/logger.py
+5
-5
No files found.
settingsd/logger.py
View file @
1d298cf1
...
@@ -47,12 +47,12 @@ def log(message_type, message) :
...
@@ -47,12 +47,12 @@ def log(message_type, message) :
(
"
\033
[36mDetails
\033
[0m"
if
use_colors_flag
else
"Details"
),
(
"
\033
[36mDetails
\033
[0m"
if
use_colors_flag
else
"Details"
),
"Debug"
"Debug"
)
)
message
=
"[
%
s ]:
%
s"
%
(
message_type_texts_list
[
message_type
[
0
]],
message
)
print
>>
sys
.
stderr
,
const
.
MY_NAME
,
message
for
message_list_item
in
message
.
split
(
"
\n
"
)
:
message_list_item
=
"[
%
s ]:
%
s"
%
(
message_type_texts_list
[
message_type
[
0
]],
message_list_item
)
if
config
.
value
(
config
.
RUNTIME_SECTION
,
"use_syslog"
)
:
print
>>
sys
.
stderr
,
const
.
MY_NAME
,
message_list_item
syslog
.
syslog
(
message_type
[
1
],
message
)
if
config
.
value
(
config
.
RUNTIME_SECTION
,
"use_syslog"
)
:
syslog
.
syslog
(
message_type
[
1
],
message_list_item
)
##### Public methods #####
##### Public methods #####
...
...
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