mirror of
https://github.com/servo/servo.git
synced 2025-09-16 09:58:23 +01:00
android/ohos: Fix wrong production cfg (#33488)
Our build script sets `servo_production` and not `production`. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
bd632fc814
commit
313fc663a6
3 changed files with 2 additions and 5 deletions
|
@ -122,7 +122,7 @@ pub extern "C" fn Java_org_servo_servoview_JNIServo_init<'local>(
|
|||
|
||||
// We only redirect stdout and stderr for non-production builds, since it is
|
||||
// only used for debugging purposes. This saves us one thread in production.
|
||||
#[cfg(not(production))]
|
||||
#[cfg(not(servo_production))]
|
||||
if let Err(e) = super::log::redirect_stdout_and_stderr() {
|
||||
error!("Failed to redirect stdout and stderr to logcat due to: {e:?}");
|
||||
}
|
||||
|
|
|
@ -342,7 +342,7 @@ fn initialize_logging_once() {
|
|||
|
||||
// We only redirect stdout and stderr for non-production builds, since it is
|
||||
// only used for debugging purposes. This saves us one thread in production.
|
||||
#[cfg(not(production))]
|
||||
#[cfg(not(servo_production))]
|
||||
if let Err(e) = super::log::redirect_stdout_and_stderr() {
|
||||
error!("Failed to redirect stdout and stderr to hilog due to: {e:?}");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue