Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c47c87ab
Commit
c47c87ab
authored
Oct 24, 2006
by
anozdrin/alik@alik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IM polishing: log more information in log.
parent
d8096799
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
server-tools/instance-manager/log.cc
server-tools/instance-manager/log.cc
+10
-8
No files found.
server-tools/instance-manager/log.cc
View file @
c47c87ab
...
...
@@ -52,14 +52,16 @@ static inline void log(FILE *file, const char *format, va_list args)
struct
tm
bd_time
;
// broken-down time
localtime_r
(
&
now
,
&
bd_time
);
char
buff_date
[
32
];
sprintf
(
buff_date
,
"%02d%02d%02d %2d:%02d:%02d
\t
"
,
bd_time
.
tm_year
%
100
,
bd_time
.
tm_mon
+
1
,
bd_time
.
tm_mday
,
bd_time
.
tm_hour
,
bd_time
.
tm_min
,
bd_time
.
tm_sec
);
char
buff_date
[
128
];
sprintf
(
buff_date
,
"[%d/%lu] [%02d/%02d/%02d %02d:%02d:%02d] "
,
(
int
)
getpid
(),
(
unsigned
long
)
pthread_self
(),
bd_time
.
tm_year
%
100
,
bd_time
.
tm_mon
+
1
,
bd_time
.
tm_mday
,
bd_time
.
tm_hour
,
bd_time
.
tm_min
,
bd_time
.
tm_sec
);
/* Format the message */
char
buff_stack
[
256
];
...
...
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