Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for DEBUG (0.17 sec)

  1. docs/contribute/debug_logging.md

    Debug Logging
    =============
    
    OkHttp has internal APIs to enable debug logging. It uses the `java.util.logging` API which can be
    tricky to configure. As a shortcut, you can paste [OkHttpDebugLogging.kt]. Then enable debug logging
    for whichever features you need:
    
    ```
    OkHttpDebugLogging.enableHttp2()
    OkHttpDebugLogging.enableTaskRunner()
    ```
    
    ### Activating on Android
    
    ```
    $ adb shell setprop log.tag.okhttp.Http2 DEBUG
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  2. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      val sslDebug: Boolean by option(help = "Output SSL Debug").flag()
    
      val url: String? by argument(name = "url", help = "Remote resource URL")
    
      var client: Call.Factory? = null
    
      override fun run() {
        LoggingUtil.configureLogging(debug = verbose, showHttp2Frames = showHttp2Frames, sslDebug = sslDebug)
    
        commonRun()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (1)
  3. CONTRIBUTING.md

    Committer's Guides
    ------------------
    
     * [Concurrency][concurrency]
     * [Debug Logging][debug_logging]
     * [Releasing][releasing]
    
     [cla]: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1
     [concurrency]: https://square.github.io/okhttp/concurrency/
     [debug_logging]: https://square.github.io/okhttp/debug_logging/
     [releasing]: https://square.github.io/okhttp/releasing/
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. docs/contribute/contributing.md

    Committer's Guides
    ------------------
    
     * [Concurrency][concurrency]
     * [Debug Logging][debug_logging]
     * [Releasing][releasing]
    
     [cla]: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1
     [concurrency]: https://square.github.io/okhttp/concurrency/
     [debug_logging]: https://square.github.io/okhttp/debug_logging/
     [releasing]: https://square.github.io/okhttp/releasing/
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2K bytes
    - Viewed (1)
  5. docs/changelogs/changelog_4x.md

     *  Fix: Don't fail on a redirect when a client has configured a 'trust everything' trust manager.
        Typically this would cause certain redirects to fail in debug and development configurations.
    
    
    ## Version 4.4.0
    
    _2020-02-17_
    
     *  New: Support `canceled()` as an event that can be observed by `EventListener`. This should be
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  6. mkdocs.yml

            'contributing.md': 'contribute/contributing.md'
            'code_of_conduct.md': 'contribute/code_of_conduct.md'
            'concurrency.md': 'contribute/concurrency.md'
            'debug_logging.md': 'contribute/debug_logging.md'
    
    nav:
      - 'Overview':
        - 'Overview': index.md
        - 'Stack Overflow': https://stackoverflow.com/questions/tagged/okhttp?sort=active
      - 'Features':
        - 'Calls': features/calls.md
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Nov 20 15:26:12 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        }
      }
    
      @Test fun goAwayWithoutDebugDataRoundTrip() {
        val expectedError = ErrorCode.PROTOCOL_ERROR
        writeMedium(frame, 8) // Without debug data there's only 2 32-bit fields.
        frame.writeByte(TYPE_GOAWAY)
        frame.writeByte(FLAG_NONE)
        frame.writeInt(0) // connection-scope
        frame.writeInt(expectedStreamId) // last good stream.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/TestTls13Request.kt

              "${response.code} ${response.body.bytes().size}b",
          )
        }
      } catch (ioe: IOException) {
        println(ioe)
      }
    }
    
    fun main(vararg args: String) {
      // System.setProperty("javax.net.debug", "ssl:handshake:verbose");
      Security.insertProviderAt(Conscrypt.newProviderBuilder().provideTrustManager().build(), 1)
      println("Running tests using ${Platform.get()} ${System.getProperty("java.vm.version")}")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

    private val LogRecord.androidLevel: Int
      get() =
        when {
          level.intValue() > Level.INFO.intValue() -> Log.WARN
          level.intValue() == Level.INFO.intValue() -> Log.INFO
          else -> Log.DEBUG
        }
    
    object AndroidLogHandler : Handler() {
      override fun publish(record: LogRecord) {
        androidLog(record.loggerName, record.androidLevel, record.message, record.thrown)
      }
    
      override fun flush() {
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. okcurl/src/main/kotlin/okhttp3/curl/logging/LoggingUtil.kt

      companion object {
        private val activeLoggers = mutableListOf<Logger>()
    
        fun configureLogging(
          debug: Boolean,
          showHttp2Frames: Boolean,
          sslDebug: Boolean,
        ) {
          if (debug || showHttp2Frames || sslDebug) {
            if (sslDebug) {
              System.setProperty("javax.net.debug", "")
            }
            LogManager.getLogManager().reset()
            val handler =
              object : ConsoleHandler() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.7K bytes
    - Viewed (1)
Back to top