Skip to content

Commit

Permalink
added some debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
LumePart committed Dec 14, 2024
1 parent be3e6cc commit 554ff2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plex.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func getPlexLibraries(cfg Config) (Libraries, error) {
var libraries Libraries
err = parseResp(body, &libraries)
if err != nil {
debug.Debug(string(body))
log.Fatalf("getPlexLibraries(): %s", err.Error())
}
return libraries, nil
Expand All @@ -162,7 +163,7 @@ func (cfg *Config) getPlexLibrary() {
cfg.Plex.LibraryID = library.Key
}
}

debug.Debug(fmt.Sprintf("full libary output: %v", libraries))
log.Fatalf("no library named %s found, please check LIBRARY_NAME variable", cfg.Plex.LibraryName)
}

Expand Down

0 comments on commit 554ff2b

Please sign in to comment.