debug radio paradise
This commit is contained in:
@@ -9,7 +9,7 @@ host:
|
||||
logger:
|
||||
buffer_capacity: 200
|
||||
enable_console: true
|
||||
min_level: INFO
|
||||
min_level: TRACE
|
||||
mediarenderer:
|
||||
mpd_renderer: null
|
||||
mediaserver:
|
||||
|
||||
BIN
.pmomusic_audio/6274bb81a4547b93.orig.flac
Normal file
BIN
.pmomusic_audio/6274bb81a4547b93.orig.flac
Normal file
Binary file not shown.
Binary file not shown.
@@ -154,14 +154,14 @@ export async function consolidateCache(): Promise<void> {
|
||||
* Génère l'URL pour streamer une piste
|
||||
*/
|
||||
export function getTrackUrl(pk: string): string {
|
||||
return `/audio/tracks/${pk}`;
|
||||
return `/audio/flac/${pk}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Génère l'URL pour télécharger la piste originale
|
||||
*/
|
||||
export function getOriginalTrackUrl(pk: string): string {
|
||||
return `/audio/tracks/${pk}/orig`;
|
||||
return `/audio/flac/${pk}/orig`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -114,7 +114,7 @@ export async function consolidateCache(): Promise<void> {
|
||||
*/
|
||||
export function getImageUrl(pk: string, size?: number): string {
|
||||
if (size) {
|
||||
return `/covers/images/${pk}/${size}`;
|
||||
return `/covers/image/${pk}/${size}`;
|
||||
}
|
||||
return `/covers/images/${pk}`;
|
||||
return `/covers/image/${pk}`;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ impl CacheConfig for AudioConfig {
|
||||
}
|
||||
|
||||
fn cache_type() -> &'static str {
|
||||
"audio"
|
||||
"flac"
|
||||
}
|
||||
|
||||
fn cache_name() -> &'static str {
|
||||
|
||||
@@ -64,10 +64,10 @@ Consolide le cache (répare les incohérences)
|
||||
|
||||
## Servir les fichiers
|
||||
|
||||
### GET /audio/tracks/{pk}
|
||||
### GET /audio/flac/{pk}
|
||||
Récupère le fichier FLAC (streaming progressif si en cours de téléchargement)
|
||||
|
||||
### GET /audio/tracks/{pk}/orig
|
||||
### GET /audio/flac/{pk}/orig
|
||||
Alias pour le fichier original
|
||||
|
||||
## Format des fichiers
|
||||
|
||||
@@ -433,7 +433,7 @@ impl Config {
|
||||
pub fn get_log_min_level(&self) -> Result<String> {
|
||||
match self.get_value(&["host", "logger", "min_level"])? {
|
||||
Value::String(s) => Ok(s),
|
||||
_ => Ok("INFO".to_string()),
|
||||
_ => Ok("TRACE".to_string()),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -261,9 +261,9 @@ pub fn init_logging() -> LogState {
|
||||
let log_level = match config.get_log_min_level() {
|
||||
Ok(l) => match string_to_level(&l) {
|
||||
Some(lev) => level_to_levelfilter(lev),
|
||||
None => LevelFilter::INFO,
|
||||
None => LevelFilter::TRACE,
|
||||
}
|
||||
Err(_) => LevelFilter::INFO
|
||||
Err(_) => LevelFilter::TRACE
|
||||
};
|
||||
|
||||
let (filter, reload_handle) = reload::Layer::new(log_level);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use tracing::{debug, trace};
|
||||
use tracing::{debug, info, trace};
|
||||
use xmltree::{Element, XMLNode};
|
||||
|
||||
use crate::{
|
||||
@@ -75,7 +75,7 @@ impl Action {
|
||||
action_handler!(|instance| {
|
||||
use crate::UpnpTypedInstance;
|
||||
|
||||
debug!("🎬 Action '{}' called", instance.get_name());
|
||||
info!("🎬 Action '{}' called", instance.get_name());
|
||||
|
||||
// Logger les arguments d'entrée (déjà stockés dans les variables par run())
|
||||
for arg_inst in instance.arguments_set().all() {
|
||||
|
||||
Reference in New Issue
Block a user