mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-30 17:23:44 -04:00
Change some playlist scanner log levels
This commit is contained in:
parent
0a2d2273bd
commit
129c00c3d1
@ -765,12 +765,12 @@ scan_itunes_itml(char *file)
|
|||||||
int fd;
|
int fd;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DPRINTF(E_INFO, L_SCAN, "Processing iTunes library: %s\n", file);
|
DPRINTF(E_LOG, L_SCAN, "Processing iTunes library: %s\n", file);
|
||||||
|
|
||||||
fd = open(file, O_RDONLY);
|
fd = open(file, O_RDONLY);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "Could not open iTunes library '%s': %s\n", file, strerror(errno));
|
DPRINTF(E_LOG, L_SCAN, "Could not open iTunes library '%s': %s\n", file, strerror(errno));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -778,7 +778,7 @@ scan_itunes_itml(char *file)
|
|||||||
ret = fstat(fd, &sb);
|
ret = fstat(fd, &sb);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "Could not stat iTunes library '%s': %s\n", file, strerror(errno));
|
DPRINTF(E_LOG, L_SCAN, "Could not stat iTunes library '%s': %s\n", file, strerror(errno));
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
return;
|
return;
|
||||||
@ -787,7 +787,7 @@ scan_itunes_itml(char *file)
|
|||||||
itml_xml = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0);
|
itml_xml = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0);
|
||||||
if (itml_xml == MAP_FAILED)
|
if (itml_xml == MAP_FAILED)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "Could not map iTunes library: %s\n", strerror(errno));
|
DPRINTF(E_LOG, L_SCAN, "Could not map iTunes library: %s\n", strerror(errno));
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
return;
|
return;
|
||||||
@ -804,14 +804,14 @@ scan_itunes_itml(char *file)
|
|||||||
|
|
||||||
if (!itml)
|
if (!itml)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "iTunes XML playlist '%s' failed to parse\n", file);
|
DPRINTF(E_LOG, L_SCAN, "iTunes XML playlist '%s' failed to parse\n", file);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plist_get_node_type(itml) != PLIST_DICT)
|
if (plist_get_node_type(itml) != PLIST_DICT)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "Malformed iTunes XML playlist '%s'\n", file);
|
DPRINTF(E_LOG, L_SCAN, "Malformed iTunes XML playlist '%s'\n", file);
|
||||||
|
|
||||||
plist_free(itml);
|
plist_free(itml);
|
||||||
return;
|
return;
|
||||||
@ -829,7 +829,7 @@ scan_itunes_itml(char *file)
|
|||||||
ret = get_dictval_dict_from_key(itml, "Tracks", &node);
|
ret = get_dictval_dict_from_key(itml, "Tracks", &node);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "Could not find Tracks dict\n");
|
DPRINTF(E_LOG, L_SCAN, "Could not find Tracks dict\n");
|
||||||
|
|
||||||
plist_free(itml);
|
plist_free(itml);
|
||||||
return;
|
return;
|
||||||
@ -859,7 +859,7 @@ scan_itunes_itml(char *file)
|
|||||||
ret = process_tracks(node);
|
ret = process_tracks(node);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "No tracks loaded\n");
|
DPRINTF(E_LOG, L_SCAN, "No tracks loaded\n");
|
||||||
|
|
||||||
avl_free_tree(itml_to_db);
|
avl_free_tree(itml_to_db);
|
||||||
plist_free(itml);
|
plist_free(itml);
|
||||||
@ -874,7 +874,7 @@ scan_itunes_itml(char *file)
|
|||||||
ret = get_dictval_array_from_key(itml, "Playlists", &node);
|
ret = get_dictval_array_from_key(itml, "Playlists", &node);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "Could not find Playlists dict\n");
|
DPRINTF(E_LOG, L_SCAN, "Could not find Playlists dict\n");
|
||||||
|
|
||||||
avl_free_tree(itml_to_db);
|
avl_free_tree(itml_to_db);
|
||||||
plist_free(itml);
|
plist_free(itml);
|
||||||
|
@ -88,7 +88,7 @@ scan_m3u_playlist(char *file, time_t mtime)
|
|||||||
int ret;
|
int ret;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
DPRINTF(E_INFO, L_SCAN, "Processing static playlist: %s\n", file);
|
DPRINTF(E_LOG, L_SCAN, "Processing static playlist: %s\n", file);
|
||||||
|
|
||||||
ret = stat(file, &sb);
|
ret = stat(file, &sb);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
@ -123,7 +123,7 @@ scan_m3u_playlist(char *file, time_t mtime)
|
|||||||
fp = fopen(file, "r");
|
fp = fopen(file, "r");
|
||||||
if (!fp)
|
if (!fp)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_SCAN, "Could not open playlist '%s': %s\n", file, strerror(errno));
|
DPRINTF(E_LOG, L_SCAN, "Could not open playlist '%s': %s\n", file, strerror(errno));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user