Skip to content

Print out service name instead of hash in log #382

Open
@Abdillah

Description

@Abdillah

Feature Proposed

Currently, when rathole encounter problematic connection with a client (or service), it prints only the hash. This makes very cumbersome to know what's wrong.

2024-08-04T03:33:44.133348Z ERROR connection{addr=19.21.31.21:43302}: rathole::server: No such a service 636396f02b6571e40d8fe91cba550515c0cdc0e7d314c210e00b02256375a796
2024-08-04T03:33:45.244408Z  INFO connection{addr=19.21.31.21:43318}: rathole::server: Try to handshake a control channel
2024-08-04T03:33:45.244613Z ERROR connection{addr=19.21.31.21:43318}: rathole::server: No such a service 636396f02b6571e40d8fe91cba550515c0cdc0e7d314c210e00b02256375a796
2024-08-04T03:33:46.133706Z  INFO connection{addr=19.21.31.21:43322}: rathole::server: Try to handshake a control channel
2024-08-04T03:33:46.133835Z ERROR connection{addr=19.21.31.21:43322}: rathole::server: No such a service 636396f02b6571e40d8fe91cba550515c0cdc0e7d314c210e00b02256375a796
2024-08-04T03:33:47.303882Z  INFO connection{addr=19.21.31.21:45388}: rathole::server: Try to handshake a control channel

Use Case

In above case, I don't know which service is wrong, so I ignore it. But, I actually has unstable connection. So, I can't do anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions