Skip to content

Commit

Permalink
More debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
jskripsky committed Nov 21, 2023
1 parent e107fd7 commit f0a64e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module Main =
[<EntryPoint>]
let main (args: string[]): int =
let secrets = getSecretsFromEnvironment ()
printfn "Topic: %s" (secrets.NtfyTopic.Replace('-', '_'))

let log = Logger.createMultiLogger [
Logger.createConsoleLogger ()
Expand Down
2 changes: 2 additions & 0 deletions src/Ntfy.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ module Ntfy =

printfn "StatusCode: %A" resp.StatusCode
if resp.StatusCode <> HttpStatusCode.OK then
printfn "URL: %s" (url.Replace('-', '_'))
printfn "Topic: %s" (topic.Replace('-', '_'))
printfn "Reason: %s" resp.ReasonPhrase

()

0 comments on commit f0a64e1

Please sign in to comment.