Skip to content

Commit 554ff2b

Browse files
committed
added some debugging
1 parent be3e6cc commit 554ff2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plex.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ func getPlexLibraries(cfg Config) (Libraries, error) {
146146
var libraries Libraries
147147
err = parseResp(body, &libraries)
148148
if err != nil {
149+
debug.Debug(string(body))
149150
log.Fatalf("getPlexLibraries(): %s", err.Error())
150151
}
151152
return libraries, nil
@@ -162,7 +163,7 @@ func (cfg *Config) getPlexLibrary() {
162163
cfg.Plex.LibraryID = library.Key
163164
}
164165
}
165-
166+
debug.Debug(fmt.Sprintf("full libary output: %v", libraries))
166167
log.Fatalf("no library named %s found, please check LIBRARY_NAME variable", cfg.Plex.LibraryName)
167168
}
168169

0 commit comments

Comments
 (0)