Disable log on drop by default - #925
FireDasher wants to merge 1 commit into
Conversation
|
It's difficult to read from a screen, but your "Nobody wants this message. It's useless." comes across as rather harsh. Have you read back in history or the documentation why it's there? It's not necessary in the strictly procedural case of "create a stream, play something, sleep, terminate" like the simple terminal examples. In other cases, users do stuff like creating a We have put that message there exactly because it helps lots of users. We would welcome ideas how to fix this without having to keep the handle around in the struct. Until then, this message stays. |
Sorry also yeah you make a fair point |
|
Maybe you could replace the log_on_drop to instead take self directly and return self so you don't have to make the stream mutable just to disable the message if you didn't want it. |
Nobody wants this message. It's useless. You should not have to make your stream mutable just to disable this message. I've left the message in in case someone wanted it for debugging, but this should absolutely not be enabled by default, since the program will always close eventually, and it is quite obvious that audio being played by a program will stop when it's terminated.