- "127.0.0.1:8536:8536"
restart: always
environment:
- - RUST_LOG=error
+ - RUST_LOG="warn,lemmy_server=info,lemmy_api=info,lemmy_api_common=info,lemmy_api_crud=info,lemmy_apub=info,lemmy_apub_receive=info,lemmy_db_queries=info,lemmy_db_schema=info,lemmy_db_views=info,lemmy_db_views_actor=info,lemmy_db_views_moderator=info,lemmy_routes=info,lemmy_utils=info,lemmy_websocket=info"
volumes:
- ./lemmy.hjson:/config/config.hjson:ro
depends_on:
use crate::{check_is_apub_id_valid, APUB_JSON_CONTENT_TYPE};
use anyhow::anyhow;
use lemmy_utils::{request::retry, LemmyError};
+use log::info;
use reqwest::{Client, StatusCode};
use serde::Deserialize;
use std::time::Duration;
.await?;
if res.status() == StatusCode::GONE {
+ info!("Fetched remote object {} which was deleted", url);
return Err(FetchError {
- inner: anyhow!("Remote object {} was deleted", url),
+ inner: anyhow!("Fetched remote object {} which was deleted", url),
status_code: Some(res.status()),
});
}
- Ok(res.json().await?)
+ let object = res.json().await?;
+ info!("Fetched remote object {}", url);
+ Ok(object)
}
assert_activity_not_local(&activity)?;
insert_activity(&activity_id, activity.clone(), false, true, context.pool()).await?;
- info!(
- "Community {} received activity {:?} from {}",
- community.name,
- &activity.id_unchecked(),
- &actor.actor_id()
- );
-
community_receive_message(
activity.clone(),
community.clone(),
.await??;
check_community_or_site_ban(&person, to_community.id, context.pool()).await?;
+ info!(
+ "Community {} received activity {} from {}",
+ to_community.name,
+ &activity
+ .id_unchecked()
+ .context(location_info!())?
+ .to_string(),
+ &person.actor_id().to_string()
+ );
+
let any_base = activity.clone().into_any_base()?;
let actor_url = actor.actor_id();
let activity_kind = activity.kind().context(location_info!())?;
};
use lemmy_utils::{location_info, LemmyError};
use lemmy_websocket::LemmyContext;
-use log::debug;
+use log::info;
use serde::{Deserialize, Serialize};
use std::fmt::Debug;
use strum_macros::EnumString;
assert_activity_not_local(&activity)?;
insert_activity(&activity_id, activity.clone(), false, true, context.pool()).await?;
- debug!(
- "Person {} received activity {:?} from {}",
- person.name,
- &activity.id_unchecked(),
- &actor.actor_id()
- );
-
person_receive_message(
activity.clone(),
Some(person.clone()),
) -> Result<HttpResponse, LemmyError> {
is_for_person_inbox(context, &activity).await?;
+ info!(
+ "User received activity {:?} from {}",
+ &activity
+ .id_unchecked()
+ .context(location_info!())?
+ .to_string(),
+ &actor.actor_id().to_string()
+ );
+
let any_base = activity.clone().into_any_base()?;
let kind = activity.kind().context(location_info!())?;
let actor_url = actor.actor_id();
- "8536:8536"
restart: always
environment:
- - RUST_LOG=debug
+ - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_apub_receive=debug,lemmy_db_queries=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug"
volumes:
- ../lemmy.hjson:/config/config.hjson
depends_on:
environment:
- LEMMY_TEST_SEND_SYNC=1
- RUST_BACKTRACE=1
- - RUST_LOG=debug
+ - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_apub_receive=debug,lemmy_db_queries=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug"
depends_on:
- postgres_alpha
ports:
environment:
- LEMMY_TEST_SEND_SYNC=1
- RUST_BACKTRACE=1
- - RUST_LOG=debug
+ - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_apub_receive=debug,lemmy_db_queries=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug"
depends_on:
- postgres_beta
ports:
environment:
- LEMMY_TEST_SEND_SYNC=1
- RUST_BACKTRACE=1
- - RUST_LOG=debug
+ - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_apub_receive=debug,lemmy_db_queries=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug"
depends_on:
- postgres_gamma
ports:
environment:
- LEMMY_TEST_SEND_SYNC=1
- RUST_BACKTRACE=1
- - RUST_LOG=debug
+ - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_apub_receive=debug,lemmy_db_queries=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug"
depends_on:
- postgres_delta
ports:
environment:
- LEMMY_TEST_SEND_SYNC=1
- RUST_BACKTRACE=1
- - RUST_LOG=debug
+ - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_apub_receive=debug,lemmy_db_queries=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug"
depends_on:
- postgres_epsilon
ports:
- "127.0.0.1:8536:8536"
restart: always
environment:
- - RUST_LOG=error
+ - RUST_LOG="warn,lemmy_server=info,lemmy_api=info,lemmy_api_common=info,lemmy_api_crud=info,lemmy_apub=info,lemmy_apub_receive=info,lemmy_db_queries=info,lemmy_db_schema=info,lemmy_db_views=info,lemmy_db_views_actor=info,lemmy_db_views_moderator=info,lemmy_routes=info,lemmy_utils=info,lemmy_websocket=info"
volumes:
- ./lemmy.hjson:/config/config.hjson
depends_on: