File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,16 @@ class log_record
34
34
// Implicit construction from anything serializable to text.
35
35
template < typename TypeOfSomething >
36
36
log_record ( TypeOfSomething&& message )
37
- : m_filename( " unknown" )
38
- , m_line(0 )
37
+ : m_filename( " unknown" )
38
+ , m_line(0 )
39
39
{
40
40
write ( std::forward<TypeOfSomething>(message) );
41
41
}
42
42
43
43
// Construction with recording context informations.
44
44
log_record ( std::string filename, unsigned long line )
45
- : m_filename( filename )
46
- , m_line( line )
45
+ : m_filename( filename )
46
+ , m_line( line )
47
47
{
48
48
}
49
49
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ namespace handler
18
18
namespace
19
19
{
20
20
void std_log_handler ( const log_record& log )
21
- {
21
+ {
22
22
std::cerr << " [network " << log.filename () << " :" << log.line () << " ] "
23
- << log.message () << std::endl;
23
+ << log.message () << std::endl;
24
24
}
25
25
}
26
26
@@ -47,7 +47,7 @@ void log( const log_record& log )
47
47
auto log_handler = current_log_record_handler;
48
48
if ( log_handler )
49
49
{
50
- (*log_handler)( log );
50
+ (*log_handler)( log );
51
51
}
52
52
}
53
53
You can’t perform that action at this time.
0 commit comments