Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging to API methods. #14

Merged
merged 4 commits into from
Jul 9, 2014
Merged

Add logging to API methods. #14

merged 4 commits into from
Jul 9, 2014

Conversation

aszlig
Copy link
Owner

@aszlig aszlig commented May 16, 2014

Properly implement logging for the API, so especially long-running actions can be debugged more easily.

Also, this should make hetznerctl much more user-friendly because we can use a default log level for the CLI.

This should give the majority of information about what's being sent and
received to and from the Robot and is mainly useful for debugging during
development.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This is one of the main reasons we want to have logging, because a
"hetznerctl rescue <server>" usually prints nothing until we either have
a shell or we timed out waiting for the machine to come up.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This should make it easier to see which server the log message actually
is for.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This should at least make observed_* actions a bit more visible and we
can easily switch between logging levels.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
@aszlig aszlig merged commit 3caa1ee into master Jul 9, 2014
aszlig added a commit that referenced this pull request Jul 9, 2014
Although the logging implementation isn't complete, we now at least have
logging for observed_* stuff and debug logging for raw robot requests.

Conflicts:
	hetzner/server.py
@aszlig aszlig deleted the logging branch July 9, 2014 13:47
aszlig added a commit to NixOS/nixpkgs that referenced this pull request Dec 4, 2017
New features:

 * Support for retrieving reverse PTRs.
 * Support for subnet-ranges.
 * Add logging (aszlig/hetzner#14).

Fixes:

 * Hide internal methods from the public API.
 * Fix Python 3 compatibility.
 * Fix for creating admin accounts with Hetzner's new login site.
 * Fix __repr__/__str__ issue with some exceptions (aszlig/hetzner#23).
 * Fix login for RobotWebInterface

Changes for the hetznerctl utility:

 * show: Show subnets
 * show: Show reverse PTRs
 * New 'rdns' subcommand for getting/setting/removing reverse-PTRs.
 * Use 'argparse' instead of 'optparse'.
 * Add command for managing admin accounts.
 * New '--debug' flag for printing debugging information.

This also fixes NixOS/nixops#778.

Tested building against Python 2.7 and Python 3.6.

Signed-off-by: aszlig <aszlig@nix.build>
aszlig added a commit to NixOS/nixpkgs that referenced this pull request Dec 4, 2017
New features:

 * Support for retrieving reverse PTRs.
 * Support for subnet-ranges.
 * Add logging (aszlig/hetzner#14).

Fixes:

 * Hide internal methods from the public API.
 * Fix Python 3 compatibility.
 * Fix for creating admin accounts with Hetzner's new login site.
 * Fix __repr__/__str__ issue with some exceptions (aszlig/hetzner#23).
 * Fix login for RobotWebInterface

Changes for the hetznerctl utility:

 * show: Show subnets
 * show: Show reverse PTRs
 * New 'rdns' subcommand for getting/setting/removing reverse-PTRs.
 * Use 'argparse' instead of 'optparse'.
 * Add command for managing admin accounts.
 * New '--debug' flag for printing debugging information.

This also fixes NixOS/nixops#778.

Tested building against Python 2.7 and Python 3.6.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit 6841064)
Reason: This unbreaks the NixOps Hetzner target, because the admin
        sub-account couldn't be created on initial deploy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant