GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — remove newlines from datastore Key.toString() values · Issue #1112 · googleapis/google-cloud-java

remove newlines from datastore Key.toString() values #1112

New issue
Copy link
New issue
Copy link
Closed
#1240
Closed
remove newlines from datastore Key.toString() values#1112
#1240
Copy link
Assignees
mziccard

Description

@mattnworb
mattnworb
opened on Jul 14, 2016
Issue body actions

Calling .toString() on a datastore Key, for instance when logging some value or operation in application code, returns a String containing newlines and tabs, which might be too verbose in places where each "log line" is expected to be a single line.

For instance:

partition_id {
  project_id: "some-project-id"
}
path {
  kind: "taskqueue"
  id: -1037827333
}

Since the toString implemented in BaseKey is converting the instance to protobuf and calling toString on the returned GeneratedMessage, could one of the protobuf methods for formatting without newlines be used instead for condensed output?

Activity

  1. mziccard commented on Jul 14, 2016

    @mziccard
    mziccard
    on Jul 14, 2016
    Contributor
    More actions

    Hi @mattnworb, thanks for the suggestion. Yes, I think this can be fixed as you suggest. I will keep you posted.

  2. mziccard
    closed this as completedin #1240on Sep 13, 2016
  3. mattnworb commented on Sep 13, 2016

    @mattnworb
    mattnworb
    on Sep 13, 2016
    Author
    More actions

    thanks @mziccard !

  4. JustinBeckwith
    assigned
    mziccard
    on Feb 1, 2021
  5. chingor13
    added a commit that references this issue on Jan 6, 2026

    test(deps): update dependency com.google.truth:truth to v1.1.5 (#1112)

    e4cf2a0
  6. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: Update `dependabot.yml` template (#1813) (#1112)

    92c512f
  7. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.9.4-SNAPSHOT (googleapis#1112)

    c66a51d
  8. suztomo
    added a commit that references this issue on Mar 30, 2026

    build(deps): bump cryptography from 38.0.3 to 39.0.1 in /synthtool/gc…

    1acdc9a
  9. lqiu96
    added a commit that references this issue on Apr 1, 2026

    build(deps): bump cryptography from 38.0.3 to 39.0.1 in /synthtool/gc…

    df83d2a
  10. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v24.…

    5ae4dce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @mziccard
    mziccard

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.