Add bool flag to network.ping

Since this string is inside parenthesis, the backslash doesn't need to be here. In fact, it will result in one long string with all the leading whitespace before "Token could not be retrieved" included. Changing the backslash to a single-quote, and putting a single-quote before "Token" should fix this.

The same solution qpplies to the other two log messages that were modified in this file.