Closed
Bug 1298189
Opened 9 years ago
Closed 9 years ago
Logging broken in media/webrtc/signaling/test
Categories
(Core :: WebRTC: Signaling, defect, P2)
Core
WebRTC: Signaling
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: mjf, Assigned: mjf)
Details
Attachments
(1 file)
None of the test executables under media/webrtc/signaling/test are logging due to this: https://dxr.mozilla.org/mozilla-central/source/media/webrtc/signaling/test/FakeLogging.h#12
Assignee | ||
Updated•9 years ago
|
Rank: 21
Priority: -- → P2
Assignee | ||
Comment 1•9 years ago
|
||
Looks like this should fix it:
diff --git a/media/webrtc/signaling/test/FakeLogging.h b/media/webrtc/signaling/test/FakeLogging.h
--- a/media/webrtc/signaling/test/FakeLogging.h
+++ b/media/webrtc/signaling/test/FakeLogging.h
@@ -4,13 +4,23 @@
#ifndef FakeLogging_h
#define FakeLogging_h
namespace mozilla {
namespace detail {
void log_print(const PRLogModuleInfo* aModule,
LogLevel aLevel,
- const char* aFmt, ...) { }
+ const char* aFmt, ...)
+ {
+ // copied from Logging.cpp:#48-53
+ va_list ap;
+ va_start(ap, aFmt);
+ char* buff = PR_vsmprintf(aFmt, ap);
+ PR_LogPrint("%s", buff);
+ PR_smprintf_free(buff);
+ va_end(ap);
+ }
+
}
}
#endif
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mfroman
Comment hidden (mozreview-request) |
Assignee | ||
Updated•9 years ago
|
Attachment #8785126 -
Flags: review?(drno)
Comment 3•9 years ago
|
||
mozreview-review |
Comment on attachment 8785126 [details]
Bug 1298189 - implement logging in FakeLogging.h so we get logs when running tests.
https://reviewboard.mozilla.org/r/74434/#review72536
Attachment #8785126 -
Flags: review?(drno) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/2ad5a1276f73
implement logging in FakeLogging.h so we get logs when running tests. r=drno
Keywords: checkin-needed
Comment 5•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•