Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/glog
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.4
Choose a base ref
...
head repository: golang/glog
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.5
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 29, 2025

  1. glog: generate a Fatalf-like error message when writing to logsinks f…

    …ails (#76)
    
    Writing to logsinks can fail (for example due to "no space left on device" or I/O errors). When that happens glog has no reasonable way to continue and causes the program to exit with exit status 2.
    
    Previously glog reused the metadata of the current call to print an error message, but that was problematic. Depending on the current call's log severity it's possible that the program just exited without printing anything. That's confusing and hard to debug.
    
    To fix that, glog creates now a new FATAL-level metadata object and prints a clearer error message (with stacks). In most situations this will at least be logged to stderr.
    
    Thanks @atetubou for the initial fix!
    
    cl/750790337 (google-internal)
    cl/752634801 (google-internal)
    chressie authored Apr 29, 2025
    Configuration menu
    Copy the full SHA
    2b790ef View commit details
    Browse the repository at this point in the history
Loading